mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-15 05:26:37 +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
dcadc4c15a
commit
42efb739d8
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user