summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/orm/test_unitofworkv2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/orm/test_unitofworkv2.py b/test/orm/test_unitofworkv2.py
index b2fefe616..651a9b9ab 100644
--- a/test/orm/test_unitofworkv2.py
+++ b/test/orm/test_unitofworkv2.py
@@ -1307,9 +1307,13 @@ class RowswitchAccountingTest(fixtures.MappedTest):
sess.flush()
eq_(
- select([func.count('*')]).select_from(self.tables.parent).scalar(),
- 0)
+ sess.scalar(
+ select([func.count('*')]).select_from(self.tables.parent)
+ ),
+ 0
+ )
+ sess.close()
class RowswitchM2OTest(fixtures.MappedTest):
# tests for #3060 and related issues