We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cd9265 commit 03e96bcCopy full SHA for 03e96bc
1 file changed
postgresql/test/test_copyman.py
@@ -510,7 +510,7 @@ def failed_write(*args):
510
self.assertEqual(done, True)
511
# May not be aligned; really, we're expecting the connection to
512
# have died.
513
- self.assertTrue(Exception, dst2.execute, "SELECT 1")
+ self.assertRaises(Exception, dst2.execute, "SELECT 1")
514
515
# Connections should be usable.
516
self.assertEqual(prepare('select 1').first(), 1)
0 commit comments