diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-12-03 18:47:19 -0800 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-05-18 11:18:24 +0100 |
commit | 42efb739d8610a1f11840002f7def545e165ace7 (patch) | |
tree | 19e0a191c20fde00f6491b71a17ac5f01f8cd35c | |
parent | dcadc4c15ad3a66ef16076be95f4fa150c173485 (diff) | |
download | psycopg2-42efb739d8610a1f11840002f7def545e165ace7.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-x | tests/test_cursor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 7a98e26..7664616 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -567,7 +567,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) |