Fixed use of StandardError in test

In Py3 it's gone.
This commit is contained in:
Daniele Varrazzo 2019-02-11 00:26:01 +00:00
parent 99f680b6fe
commit 3de4d17519

View File

@ -69,7 +69,7 @@ class ErrorsTests(ConnectingTestCase):
excs = []
for n in dir(psycopg2):
obj = getattr(psycopg2, n)
if isinstance(obj, type) and issubclass(obj, StandardError):
if isinstance(obj, type) and issubclass(obj, Exception):
excs.append(obj)
self.assert_(len(excs) > 8, str(excs))