summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py
index f72626cf0..200c88b03 100644
--- a/numpy/testing/numpytest.py
+++ b/numpy/testing/numpytest.py
@@ -42,7 +42,7 @@ def importall(package):
continue
name = package_name+'.'+subpackage_name
try:
- exec 'import %s as m' % (name)
+ exec('import %s as m' % (name))
except Exception as msg:
print 'Failed importing %s: %s' %(name, msg)
continue