mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Merge remote-tracking branch 'jdufresne/uuid'
This commit is contained in:
commit
db0c081d03
|
@ -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'")
|
||||
|
|
Loading…
Reference in New Issue
Block a user