diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:28:27 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:29:27 +0000 |
commit | e1ef55ffbcec7a9a7f8d978c572050f59b1dff4e (patch) | |
tree | a1da4c2e21a93c91b5229004d3d6183816d9b7b7 /tests/__init__.py | |
parent | c71559cf19adad51a029aebfd663401cdb130aa6 (diff) | |
download | psycopg2-async-keyword.tar.gz |
Added async_ as an alias for asyncasync-keyword
Added in argument for psycopg2.connect() and connection.__init__, and
for the connection.async attribute.
Diffstat (limited to 'tests/__init__.py')
-rwxr-xr-x | tests/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 5382afe..2b3a6a4 100755 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -54,6 +54,9 @@ import test_types_basic import test_types_extras import test_with +if sys.version_info[:2] < (3, 6): + import test_async_keyword + def test_suite(): # If connection to test db fails, bail out early. @@ -69,6 +72,8 @@ def test_suite(): suite = unittest.TestSuite() suite.addTest(test_async.test_suite()) + if sys.version_info[:2] < (3, 6): + suite.addTest(test_async_keyword.test_suite()) suite.addTest(test_bugX000.test_suite()) suite.addTest(test_bug_gc.test_suite()) suite.addTest(test_cancel.test_suite()) |