mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-17 01:20:32 +03:00
Remove uuid workaround for older Pythons
uuid is available on all Python versions supported by psycopg2.
This commit is contained in:
parent
858bc3d42a
commit
582ec189cc
|
@ -203,11 +203,6 @@ def skip_if_no_uuid(f):
|
||||||
"""Decorator to skip a test if uuid is not supported by Py/PG."""
|
"""Decorator to skip a test if uuid is not supported by Py/PG."""
|
||||||
@wraps(f)
|
@wraps(f)
|
||||||
def skip_if_no_uuid_(self):
|
def skip_if_no_uuid_(self):
|
||||||
try:
|
|
||||||
import uuid # noqa
|
|
||||||
except ImportError:
|
|
||||||
return self.skipTest("uuid not available in this Python version")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cur = self.conn.cursor()
|
cur = self.conn.cursor()
|
||||||
cur.execute("select typname from pg_type where typname = 'uuid'")
|
cur.execute("select typname from pg_type where typname = 'uuid'")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user