diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-04-24 11:55:04 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-04-24 11:55:04 -0400 |
| commit | f5c98d5470ba2d7ed42ed6c1298d760eb5765710 (patch) | |
| tree | 0d76dfe9eec5630940aea1e66f82cb0fbc891fba /test/orm/test_session.py | |
| parent | 1bab44c2ba7bc3ce34b3936fad6f47a2af27351c (diff) | |
| download | sqlalchemy-f5c98d5470ba2d7ed42ed6c1298d760eb5765710.tar.gz | |
- [bug] The "passive" flag on Session.is_modified()
no longer has any effect. is_modified() in
all cases looks only at local in-memory
modified flags and will not emit any
SQL or invoke loader callables/initializers.
[ticket:2320]
Diffstat (limited to 'test/orm/test_session.py')
| -rw-r--r-- | test/orm/test_session.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/orm/test_session.py b/test/orm/test_session.py index a82606b2b..e1a66724c 100644 --- a/test/orm/test_session.py +++ b/test/orm/test_session.py @@ -1048,6 +1048,9 @@ class IsModifiedTest(_fixtures.FixtureTest): assert not s.is_modified(user, include_collections=False) def test_is_modified_passive_off(self): + """as of 0.8 no SQL is emitted for is_modified() + regardless of the passive flag""" + User, Address = self._default_mapping_fixture() s = Session() @@ -1062,7 +1065,7 @@ class IsModifiedTest(_fixtures.FixtureTest): self.assert_sql_count( testing.db, go, - 1 + 0 ) s.expire_all() |
