summaryrefslogtreecommitdiff
path: root/tests/testutils.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-26 13:41:22 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-11-26 13:55:30 -0800
commit05c28cce78aa223e632635af813cbbaed4c82169 (patch)
treef56ef8b70110ea7eb471e3f07d464f2f3ec37333 /tests/testutils.py
parent858bc3d42a4dfc65f6ec21e7ad28959f8255ab28 (diff)
downloadpsycopg2-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.py13
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)