diff options
author | njsmith <njs@pobox.com> | 2013-02-28 10:35:37 -0800 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-02-28 10:35:37 -0800 |
commit | 2cb5021f2110f7e24a6a30a3a0af8336f46fb621 (patch) | |
tree | eb7a8a5043ab20b1e15e92cea0c6c7ceb57c4eb9 /numpy/testing/utils.py | |
parent | ceca28d920225715870d0a83394385e320d1bb22 (diff) | |
parent | 2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 (diff) | |
download | numpy-2cb5021f2110f7e24a6a30a3a0af8336f46fb621.tar.gz |
Merge pull request #3049 from charris/2to3-exec
2to3: apply exec fixer results.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 2d3965594..ecf9fb6bd 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -881,7 +881,7 @@ def assert_array_less(x, y, err_msg='', verbose=True): header='Arrays are not less-ordered') def runstring(astr, dict): - exec astr in dict + exec(astr, dict) def assert_string_equal(actual, desired): """ @@ -1108,7 +1108,7 @@ def measure(code_str,times=1,label=None): elapsed = jiffies() while i < times: i += 1 - exec code in globs,locs + exec(code, globs,locs) elapsed = jiffies() - elapsed return 0.01*elapsed |