diff options
Diffstat (limited to 'test/orm/scoping.py')
-rw-r--r-- | test/orm/scoping.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/orm/scoping.py b/test/orm/scoping.py index eea855490..bdfc5a9d5 100644 --- a/test/orm/scoping.py +++ b/test/orm/scoping.py @@ -105,7 +105,7 @@ class ScopedMapperTest(_ScopedTest): sso = SomeOtherObject() s.options.append(sso) Session.flush() - Session.clear() + Session.expunge_all() @testing.resolve_artifact_names def test_query(self): @@ -225,7 +225,7 @@ class ScopedMapperTest2(_ScopedTest): b = BaseClass(data='b1') s = SubClass(data='s1', somedata='somedata') Session.commit() - Session.clear() + Session.expunge_all() eq_(expunge_list([BaseClass(data='b1'), SubClass(data='s1', somedata='somedata')]), |