~aafshar/storm/automatic-table-schema-generation

« back to all changes in this revision

Viewing changes to tests/base.py

  • Committer: Gustavo Niemeyer
  • Date: 2007-08-07 14:51:21 UTC
  • mfrom: (142.2.5 need-for-speed)
  • Revision ID: gustavo@niemeyer.net-20070807145121-hj61uxhh0oxkhh24
Merged need-for-speed branch [r=jkakar,radix] [f=126875]

This branch introduces a new cextensions C module which offers faster
versions of a few core types in Storm.  It's not yet built by default,
as more testing is needed before considering it as a good alternative.

A bug was also fixed: ResultSet.cached() wasn't behaving properly when
working with dead objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import gc
23
23
 
24
24
from storm.properties import Property, PropertyPublisherMeta
25
 
from storm.info import get_info
 
25
from storm.info import get_obj_info
26
26
from storm.base import *
27
27
 
28
28
from tests.helper import TestHelper
41
41
            __storm_table__ = "table_name"
42
42
            prop = Property(primary=True)
43
43
        obj = Class()
44
 
        get_info(obj) # Build all wanted meta-information.
 
44
        get_obj_info(obj) # Build all wanted meta-information.
45
45
        obj_ref = weakref.ref(obj)
46
46
        del obj
47
47
        gc.collect()