diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-02 00:31:26 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-02 00:31:26 +0000 |
commit | 0ec4e7d6b35685ba4b5d9e2053c765984b4a9189 (patch) | |
tree | 844c44f7a55c207f17aa5c9b5c608448e43c5128 /test/orm/entity.py | |
parent | c6d01a56e168f1c70461c2684c70a2c5967c4814 (diff) | |
download | sqlalchemy-0ec4e7d6b35685ba4b5d9e2053c765984b4a9189.tar.gz |
- moved class-level attributes placed by the attributes package into a _class_state
variable attached to the class.
- mappers track themselves primarily using the "mappers" collection on _class_state.
ClassKey is gone and mapper lookup uses regular dict keyed to entity_name; removes
a fair degree of WeakKeyDictionary overhead as well as ClassKey overhead.
- mapper_registry renamed to _mapper_registry; is only consulted by the
compile_mappers(), mapper.compile() and clear_mappers() functions/methods.
Diffstat (limited to 'test/orm/entity.py')
-rw-r--r-- | test/orm/entity.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/orm/entity.py b/test/orm/entity.py index 5ef01b882..ce267189f 100644 --- a/test/orm/entity.py +++ b/test/orm/entity.py @@ -43,6 +43,7 @@ class EntityTest(AssertMixin): def tearDownAll(self): metadata.drop_all() def tearDown(self): + ctx.current.clear() clear_mappers() for t in metadata.table_iterator(reverse=True): t.delete().execute() |