diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-23 00:39:14 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-23 00:39:14 +0100 |
commit | 05f9e231a0aafed57b1f38ad6a1e6a5838b05cc5 (patch) | |
tree | 806798bc7397b3bf250afa8c29fb0fc65f90682e /tests/testutils.py | |
parent | 1bb3d5cfe29677d6b24b5d04e7508688dbf4954b (diff) | |
download | psycopg2-05f9e231a0aafed57b1f38ad6a1e6a5838b05cc5.tar.gz |
Full flake8 3.5 cleanup
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index 9875381..7fd11f9 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -42,8 +42,8 @@ if sys.version_info[0] == 2: unichr = unichr else: # Python 3 - from io import StringIO - from importlib import reload + from io import StringIO # noqa + from importlib import reload # noqa long = int unichr = chr @@ -64,6 +64,7 @@ def assertDsnEqual(self, dsn1, dsn2, msg=None): """Check that two conninfo string have the same content""" self.assertEqual(set(dsn1.split()), set(dsn2.split()), msg) + unittest.TestCase.assertDsnEqual = assertDsnEqual @@ -363,6 +364,7 @@ def skip_if_green(reason): return skip_if_green__ return skip_if_green_ + skip_copy_if_green = skip_if_green("copy in async mode currently not supported") |