mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-04-25 18:53:41 +03:00
Fixed import of test functions from Python 2.7 unittest.
This commit is contained in:
parent
bbe28ba75f
commit
ed3b2188fe
|
@ -12,7 +12,8 @@ except ImportError:
|
||||||
unittest2 = None
|
unittest2 = None
|
||||||
|
|
||||||
if hasattr(unittest, 'skipIf'):
|
if hasattr(unittest, 'skipIf'):
|
||||||
from unittest2 import skip, skipIf
|
skip = unittest.skip
|
||||||
|
skipIf = unittest.skipIf
|
||||||
|
|
||||||
else:
|
else:
|
||||||
import warnings
|
import warnings
|
||||||
|
|
Loading…
Reference in New Issue
Block a user