diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-11-28 03:04:03 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-11-28 03:04:03 +0000 |
commit | a39d794308cabed87be73cc3405303cfb7398019 (patch) | |
tree | 901633807e067fc9e47c2e7a9066548dcbb7af22 /tests/testutils.py | |
parent | 7855f287850a5c786b0ac40db900f2cb5e7be302 (diff) | |
parent | f7d5d25651ccd875f7fae479da8847c0b3c0c3ea (diff) | |
download | psycopg2-a39d794308cabed87be73cc3405303cfb7398019.tar.gz |
Merge remote-tracking branch 'jdufresne/iobase'
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 4e1ee37..e860439 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -248,20 +248,6 @@ def skip_if_tpc_disabled(f): return skip_if_tpc_disabled_ -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)) |