summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-12-03 18:47:19 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-12-10 10:49:04 -0800
commitef64493b8913e4069c4422ad14da6de405c445f6 (patch)
tree4353633f29421d3d07f3cfe2cf384ae80ebc6b05
parentb42c35849bdb37c8edfe581c31ee4345847b7b88 (diff)
downloadpsycopg2-ef64493b8913e4069c4422ad14da6de405c445f6.tar.gz
Fix use of "async" in test_cursor.py
"async" will be a keyword starting with Python 3.7. On Python 3.6, use of "async" causes a deprecation warning. Use the alias "async_" instead.
-rwxr-xr-xtests/test_cursor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py
index e896ef9..5c94f42 100755
--- a/tests/test_cursor.py
+++ b/tests/test_cursor.py
@@ -553,7 +553,7 @@ class CursorTests(ConnectingTestCase):
# Issue #443 is in the async code too. Since the fix is duplicated,
# so is the test.
control_conn = self.conn
- connect_func = lambda: self.connect(async=True)
+ connect_func = lambda: self.connect(async_=True)
wait_func = psycopg2.extras.wait_select
self._test_external_close(control_conn, connect_func, wait_func)