summaryrefslogtreecommitdiff
path: root/tests/test_async.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-04-05 18:04:55 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-04-05 18:04:55 +0100
commit755a128ffbeef2813a1f5bcf1bbba629f37f0f49 (patch)
tree066229721d9f7a9870c0229b0e2ecf3e4048897c /tests/test_async.py
parent34d45aea87e53b3551934af2660085a1791bf815 (diff)
downloadpsycopg2-755a128ffbeef2813a1f5bcf1bbba629f37f0f49.tar.gz
Handle ok poll() without a cursor having executed queries
Close #887
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-xtests/test_async.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index 21ef7fe..618c158 100755
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -495,6 +495,10 @@ class AsyncTests(ConnectingTestCase):
self.assert_(polls >= 8, polls)
+ def test_poll_noop(self):
+ self.conn.poll()
+ self.conn.poll()
+
def test_suite():
return unittest.TestLoader().loadTestsFromName(__name__)