summaryrefslogtreecommitdiff
path: root/test/orm/test_naturalpks.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/test_naturalpks.py')
-rw-r--r--test/orm/test_naturalpks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/orm/test_naturalpks.py b/test/orm/test_naturalpks.py
index 05df71c6a..f2700513b 100644
--- a/test/orm/test_naturalpks.py
+++ b/test/orm/test_naturalpks.py
@@ -871,12 +871,12 @@ class ReversePKsTest(fixtures.MappedTest):
session.commit()
# testing #3108
- session.begin_nested()
+ nt1 = session.begin_nested()
a_published.status = ARCHIVED
a_editable.status = PUBLISHED
- session.commit()
+ nt1.commit()
session.rollback()
eq_(a_published.status, PUBLISHED)