Skip to content

Commit 03e96bc

Browse files
elpransJames William Pye
authored andcommitted
Fix test_copyman.testDroppedConnection test
1 parent 3cd9265 commit 03e96bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/test/test_copyman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def failed_write(*args):
510510
self.assertEqual(done, True)
511511
# May not be aligned; really, we're expecting the connection to
512512
# have died.
513-
self.assertTrue(Exception, dst2.execute, "SELECT 1")
513+
self.assertRaises(Exception, dst2.execute, "SELECT 1")
514514

515515
# Connections should be usable.
516516
self.assertEqual(prepare('select 1').first(), 1)

0 commit comments

Comments
 (0)