summaryrefslogtreecommitdiff
path: root/tests/test_async.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-10-15 00:58:32 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-10-15 00:58:32 +0100
commitb205764fdde4549c48c27841aa17e6c7f499e808 (patch)
tree1475eb57dc854ea4a1dc93c1c6a567e6fc584e5c /tests/test_async.py
parente7227ce87b8da75fef1a3376ebb47e2bf20f6063 (diff)
parent7a5edff6c66a0410d6fecd4445980aabafc3ab4a (diff)
downloadpsycopg2-errors-module.tar.gz
Merge branch 'master' into errors-moduleerrors-module
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-xtests/test_async.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index ce5e9b1..dfdc44e 100755
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -450,6 +450,12 @@ class AsyncTests(ConnectingTestCase):
else:
self.fail("no exception raised")
+ @skip_before_postgres(8, 2)
+ def test_copy_no_hang(self):
+ cur = self.conn.cursor()
+ cur.execute("copy (select 1) to stdout")
+ self.assertRaises(psycopg2.ProgrammingError, self.wait, self.conn)
+
def test_suite():
return unittest.TestLoader().loadTestsFromName(__name__)