diff --git a/tests/test_errors.py b/tests/test_errors.py index 1f11a60a..e8c61a8d 100755 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -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))