From 582ec189cc41491b804f9fb391e99b5720d56d27 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 26 Nov 2017 14:46:53 -0800 Subject: [PATCH] Remove uuid workaround for older Pythons uuid is available on all Python versions supported by psycopg2. --- tests/testutils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/testutils.py b/tests/testutils.py index 5c192e30..033aba85 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -203,11 +203,6 @@ def skip_if_no_uuid(f): """Decorator to skip a test if uuid is not supported by Py/PG.""" @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'")