diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-04-05 18:04:55 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-04-05 18:04:55 +0100 |
commit | 755a128ffbeef2813a1f5bcf1bbba629f37f0f49 (patch) | |
tree | 066229721d9f7a9870c0229b0e2ecf3e4048897c /tests/test_async.py | |
parent | 34d45aea87e53b3551934af2660085a1791bf815 (diff) | |
download | psycopg2-755a128ffbeef2813a1f5bcf1bbba629f37f0f49.tar.gz |
Handle ok poll() without a cursor having executed queries
Close #887
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-x | tests/test_async.py | 4 |
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__) |