]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix pk violation error
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Mar 2010 14:41:07 +0000 (10:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Mar 2010 14:41:07 +0000 (10:41 -0400)
test/orm/test_expire.py

index 0b3e09a830d8272fc66c96d3fe11c2e649b8c73f..926ae062998f07de16f2fd08dab2880b0b6a9973 100644 (file)
@@ -336,7 +336,7 @@ class ExpireTest(_fixtures.FixtureTest):
         s = create_session()
 
         u = s.query(User).get(8)
-        a = Address(email_address='foobar')
+        a = Address(id=12, email_address='foobar')
         
         u.addresses.append(a)
         if expire_or_refresh: