summaryrefslogtreecommitdiff
path: root/tests/test_cancel.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-03 04:45:17 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-03 04:45:17 +0000
commit1911b250e33e140bbbc25f3536bda24e8ca35bdb (patch)
treec18202b036fb5e5570c3556e852efae9a4dee76e /tests/test_cancel.py
parent6e89db020ca9fd93260bfff7aadef64dd4535553 (diff)
parent44c3b776917444ca98667f5d6f4470c767f820bf (diff)
downloadpsycopg2-1911b250e33e140bbbc25f3536bda24e8ca35bdb.tar.gz
Merge branch 'async-keyword'
Close #495
Diffstat (limited to 'tests/test_cancel.py')
-rwxr-xr-xtests/test_cancel.py4
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)