summaryrefslogtreecommitdiff
path: root/numpy/tests/test_scripts.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-12-18 06:45:17 +0200
committermattip <matti.picus@gmail.com>2018-12-18 06:45:17 +0200
commitc3b7ed0f1cee6c1a9a24a48fdafba20117dfac2a (patch)
tree18f4ad1b1f97d7ef7562c4d0318429224f9f035e /numpy/tests/test_scripts.py
parent982f12b9c6ed22079a3f358afe35ab75e3521490 (diff)
downloadnumpy-c3b7ed0f1cee6c1a9a24a48fdafba20117dfac2a.tar.gz
DEV: add test for 'python -mnumpy.f2py'
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')