summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-28 09:36:20 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-02-28 09:36:20 -0700
commit2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 (patch)
treed55a7d00d01432143ab1a7aadfffd33c04dff4a1 /numpy/testing/numpytest.py
parent0934653e151969f6912c911b5113306bd5f450f1 (diff)
downloadnumpy-2429298dd8ddf797c3c89e65eb8a9b9e8f72a299.tar.gz
2to3: apply exec fixer results.
This changes the `exec` command to the `exec` function.
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