summaryrefslogtreecommitdiff
path: root/test/orm/test_unitofwork.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/test_unitofwork.py')
-rw-r--r--test/orm/test_unitofwork.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/orm/test_unitofwork.py b/test/orm/test_unitofwork.py
index 247c5e7a8..ae5a8ef60 100644
--- a/test/orm/test_unitofwork.py
+++ b/test/orm/test_unitofwork.py
@@ -2479,7 +2479,8 @@ class PartialNullPKTest(fixtures.MappedTest):
t1.col2 = 5
assert_raises_message(
orm_exc.FlushError,
- "Can't update table using NULL for primary key value",
+ "Can't update table t1 using NULL for primary "
+ "key value on column t1.col2",
s.commit
)
@@ -2492,7 +2493,8 @@ class PartialNullPKTest(fixtures.MappedTest):
t1.col3 = 'hi'
assert_raises_message(
orm_exc.FlushError,
- "Can't update table using NULL for primary key value",
+ "Can't update table t1 using NULL for primary "
+ "key value on column t1.col2",
s.commit
)