summaryrefslogtreecommitdiff
path: root/numpy/tests/test_scripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/tests/test_scripts.py')
-rw-r--r--numpy/tests/test_scripts.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/tests/test_scripts.py b/numpy/tests/test_scripts.py
index 9e27cc6ce..61354ec64 100644
--- a/numpy/tests/test_scripts.py
+++ b/numpy/tests/test_scripts.py
@@ -97,3 +97,8 @@ def test_f2py():
success = try_f2py_commands(f2py_cmds)
msg = "Warning: not all of %s, %s, and %s are found in path" % f2py_cmds
assert_(success == 3, msg)
+
+def test_pep338():
+ f2py_cmd = [sys.executable, '-mnumpy.f2py', '-v']
+ code, stdout, stderr = run_command(f2py_cmd)
+ assert_equal(stdout.strip(), b'2')