diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-26 13:41:22 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-26 13:55:30 -0800 |
commit | 05c28cce78aa223e632635af813cbbaed4c82169 (patch) | |
tree | f56ef8b70110ea7eb471e3f07d464f2f3ec37333 /tests/testutils.py | |
parent | 858bc3d42a4dfc65f6ec21e7ad28959f8255ab28 (diff) | |
download | psycopg2-05c28cce78aa223e632635af813cbbaed4c82169.tar.gz |
Remove workarounds for namedtuple on Python <= 2.5
namedtuple is available on all Python versions supported by psycopg2. It
was first introduced in Python 2.6. Can remove all workarounds and
special documentation.
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index 5c192e3..4e1ee37 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -248,19 +248,6 @@ def skip_if_tpc_disabled(f): return skip_if_tpc_disabled_ -def skip_if_no_namedtuple(f): - @wraps(f) - def skip_if_no_namedtuple_(self): - try: - from collections import namedtuple # noqa - except ImportError: - return self.skipTest("collections.namedtuple not available") - else: - return f(self) - - return skip_if_no_namedtuple_ - - def skip_if_no_iobase(f): """Skip a test if io.TextIOBase is not available.""" @wraps(f) |