mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +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
|
||||
|
||||
if hasattr(unittest, 'skipIf'):
|
||||
from unittest2 import skip, skipIf
|
||||
skip = unittest.skip
|
||||
skipIf = unittest.skipIf
|
||||
|
||||
else:
|
||||
import warnings
|
||||
|
|
Loading…
Reference in New Issue
Block a user