89f4b65
From ef64493b8913e4069c4422ad14da6de405c445f6 Mon Sep 17 00:00:00 2001
89f4b65
From: Jon Dufresne <jon.dufresne@gmail.com>
89f4b65
Date: Sun, 3 Dec 2017 18:47:19 -0800
89f4b65
Subject: [PATCH] Fix use of "async" in test_cursor.py
89f4b65
89f4b65
"async" will be a keyword starting with Python 3.7. On Python 3.6, use
89f4b65
of "async" causes a deprecation warning. Use the alias "async_" instead.
89f4b65
---
89f4b65
 tests/test_cursor.py | 2 +-
89f4b65
 1 file changed, 1 insertion(+), 1 deletion(-)
89f4b65
89f4b65
diff --git a/tests/test_cursor.py b/tests/test_cursor.py
89f4b65
index e896ef94..5c94f422 100755
89f4b65
--- a/tests/test_cursor.py
89f4b65
+++ b/tests/test_cursor.py
89f4b65
@@ -553,7 +553,7 @@ def test_external_close_async(self):
89f4b65
         # Issue #443 is in the async code too. Since the fix is duplicated,
89f4b65
         # so is the test.
89f4b65
         control_conn = self.conn
89f4b65
-        connect_func = lambda: self.connect(async=True)
89f4b65
+        connect_func = lambda: self.connect(async_=True)
89f4b65
         wait_func = psycopg2.extras.wait_select
89f4b65
         self._test_external_close(control_conn, connect_func, wait_func)
89f4b65