From 83aff538b39de1b2e076a572fdc41359dd173dd4 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 23 Jan 2019 12:44:08 +0000 Subject: [PATCH] issue #477: testlib: Py2.4 did not have BaseException. --- tests/testlib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/testlib.py b/tests/testlib.py index 40ad3238..197b59e0 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -32,6 +32,11 @@ try: except ImportError: from io import StringIO +try: + BaseException +except NameError: + BaseException = Exception + LOG = logging.getLogger(__name__) DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')