summaryrefslogtreecommitdiff
path: root/tests/testutils.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-26 14:46:53 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-11-26 14:46:53 -0800
commit582ec189cc41491b804f9fb391e99b5720d56d27 (patch)
tree0bb6a182d12f8e1e75044c1ba966606b6b63c3e8 /tests/testutils.py
parent858bc3d42a4dfc65f6ec21e7ad28959f8255ab28 (diff)
downloadpsycopg2-582ec189cc41491b804f9fb391e99b5720d56d27.tar.gz
Remove uuid workaround for older Pythons
uuid is available on all Python versions supported by psycopg2.
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index 5c192e3..033aba8 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -204,11 +204,6 @@ def skip_if_no_uuid(f):
@wraps(f)
def skip_if_no_uuid_(self):
try:
- import uuid # noqa
- except ImportError:
- return self.skipTest("uuid not available in this Python version")
-
- try:
cur = self.conn.cursor()
cur.execute("select typname from pg_type where typname = 'uuid'")
has = cur.fetchone()