mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
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.
This commit is contained in:
parent
b42c35849b
commit
ef64493b89
|
@ -553,7 +553,7 @@ class CursorTests(ConnectingTestCase):
|
||||||
# Issue #443 is in the async code too. Since the fix is duplicated,
|
# Issue #443 is in the async code too. Since the fix is duplicated,
|
||||||
# so is the test.
|
# so is the test.
|
||||||
control_conn = self.conn
|
control_conn = self.conn
|
||||||
connect_func = lambda: self.connect(async=True)
|
connect_func = lambda: self.connect(async_=True)
|
||||||
wait_func = psycopg2.extras.wait_select
|
wait_func = psycopg2.extras.wait_select
|
||||||
self._test_external_close(control_conn, connect_func, wait_func)
|
self._test_external_close(control_conn, connect_func, wait_func)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user