From 3de4d17519670f5db058ef98c7b80a11b5ea23ea Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 11 Feb 2019 00:26:01 +0000 Subject: [PATCH] Fixed use of StandardError in test In Py3 it's gone. --- tests/test_errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))