From 6c5de1e3ee5c6f24cc6f6c863acc86c77fa99a1e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 7 Jan 2021 11:01:31 -0500 Subject: [PATCH] repair transaction scope in test_nullPKsOK_BtoA for mssql In the bound metadata removal we also mixed use of connection/engine in this test which is causing a hang on SQL Server. Change-Id: Ibbee06654d0d549968db5e0bf9daa5bef27cdbe1 --- test/orm/test_relationships.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/orm/test_relationships.py b/test/orm/test_relationships.py index 5143d98c5d..5979f08ae6 100644 --- a/test/orm/test_relationships.py +++ b/test/orm/test_relationships.py @@ -1655,7 +1655,7 @@ class FKsAsPksTest(fixtures.MappedTest): c1 = C() c1.id = 5 c1.a = None - with fixture_session() as sess: + with Session(connection) as sess: sess.add(c1) # test that no error is raised. sess.flush() -- 2.47.3