summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/test_errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_errors.py b/tests/test_errors.py
index 1f11a60..e8c61a8 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))