mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-14 04:56:33 +03:00
Fixed use of StandardError in test
In Py3 it's gone.
This commit is contained in:
parent
99f680b6fe
commit
3de4d17519
|
@ -69,7 +69,7 @@ class ErrorsTests(ConnectingTestCase):
|
||||||
excs = []
|
excs = []
|
||||||
for n in dir(psycopg2):
|
for n in dir(psycopg2):
|
||||||
obj = getattr(psycopg2, n)
|
obj = getattr(psycopg2, n)
|
||||||
if isinstance(obj, type) and issubclass(obj, StandardError):
|
if isinstance(obj, type) and issubclass(obj, Exception):
|
||||||
excs.append(obj)
|
excs.append(obj)
|
||||||
|
|
||||||
self.assert_(len(excs) > 8, str(excs))
|
self.assert_(len(excs) > 8, str(excs))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user