diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-26 14:32:35 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-26 14:32:35 -0800 |
commit | f7d5d25651ccd875f7fae479da8847c0b3c0c3ea (patch) | |
tree | 9afca8efdff36c197ccddae5258ea95653c8a6ac /tests/testutils.py | |
parent | 858bc3d42a4dfc65f6ec21e7ad28959f8255ab28 (diff) | |
download | psycopg2-f7d5d25651ccd875f7fae479da8847c0b3c0c3ea.tar.gz |
Remove io.TextIOBase workaround for Python <= 2.5
io.TextIOBase is available on all Python versions supported by psycopg2.
Can remove all workarounds.
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index 5c192e3..bead696 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -261,20 +261,6 @@ def skip_if_no_namedtuple(f): return skip_if_no_namedtuple_ -def skip_if_no_iobase(f): - """Skip a test if io.TextIOBase is not available.""" - @wraps(f) - def skip_if_no_iobase_(self): - try: - from io import TextIOBase # noqa - except ImportError: - return self.skipTest("io.TextIOBase not found.") - else: - return f(self) - - return skip_if_no_iobase_ - - def skip_before_postgres(*ver): """Skip a test on PostgreSQL before a certain version.""" ver = ver + (0,) * (3 - len(ver)) |