diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:45:17 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:45:17 +0000 |
commit | 1911b250e33e140bbbc25f3536bda24e8ca35bdb (patch) | |
tree | c18202b036fb5e5570c3556e852efae9a4dee76e /tests/test_cancel.py | |
parent | 6e89db020ca9fd93260bfff7aadef64dd4535553 (diff) | |
parent | 44c3b776917444ca98667f5d6f4470c767f820bf (diff) | |
download | psycopg2-1911b250e33e140bbbc25f3536bda24e8ca35bdb.tar.gz |
Merge branch 'async-keyword'
Close #495
Diffstat (limited to 'tests/test_cancel.py')
-rwxr-xr-x | tests/test_cancel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cancel.py b/tests/test_cancel.py index cb08e5f..3a94e5f 100755 --- a/tests/test_cancel.py +++ b/tests/test_cancel.py @@ -88,7 +88,7 @@ class CancelTests(ConnectingTestCase): @skip_before_postgres(8, 2) def test_async_cancel(self): - async_conn = psycopg2.connect(dsn, async=True) + async_conn = psycopg2.connect(dsn, async_=True) self.assertRaises(psycopg2.OperationalError, async_conn.cancel) extras.wait_select(async_conn) cur = async_conn.cursor() @@ -102,7 +102,7 @@ class CancelTests(ConnectingTestCase): self.assertEqual(cur.fetchall(), [(1, )]) def test_async_connection_cancel(self): - async_conn = psycopg2.connect(dsn, async=True) + async_conn = psycopg2.connect(dsn, async_=True) async_conn.close() self.assertTrue(async_conn.closed) |