diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2017-10-01 18:30:49 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2017-10-01 18:30:49 +0200 |
commit | 557a2a2a6962f11727b2bfbdb04b6c4fea10e6fc (patch) | |
tree | cdfdfe9dc36cc2b258d39fd1acf1058f1eff8e6d | |
parent | 9bfc1e0af988730d9f3e5ce527217d563a9f0192 (diff) | |
download | cython-557a2a2a6962f11727b2bfbdb04b6c4fea10e6fc.tar.gz |
Catch concrete exception in test to prevent hiding actual errors.
-rw-r--r-- | Cython/Build/Tests/TestIpythonMagic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Build/Tests/TestIpythonMagic.py b/Cython/Build/Tests/TestIpythonMagic.py index 747404162..fafabde96 100644 --- a/Cython/Build/Tests/TestIpythonMagic.py +++ b/Cython/Build/Tests/TestIpythonMagic.py @@ -14,7 +14,7 @@ from Cython.TestUtils import CythonTest try: from IPython.testing.globalipapp import get_ipython from IPython.utils import py3compat -except: +except ImportError: # Disable tests and fake helpers for initialisation below. class _py3compat(object): def str_to_unicode(self, s): |