diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-03-16 18:41:59 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-03-16 18:41:59 +0000 |
commit | aaba4dcf87431079203c900fbec8ca2a519392b9 (patch) | |
tree | a4ac60c56b7f1f4e402730508599026a8d4dc1a0 /tests/testutils.py | |
parent | d90ad8627d0a7244abeee7cd3a9418d529dc1428 (diff) | |
download | psycopg2-aaba4dcf87431079203c900fbec8ca2a519392b9.tar.gz |
TextIOBase moved to tests compat imports
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index 8dab1b6..24b99e5 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -43,12 +43,15 @@ from .testconfig import green if sys.version_info[0] == 2: # Python 2 from StringIO import StringIO + TextIOBase = object long = long reload = reload unichr = unichr + else: # Python 3 from io import StringIO # noqa + from io import TextIOBase # noqa from importlib import reload # noqa long = int unichr = chr |