summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-04-03 11:25:17 +0100
committerEric Wieser <wieser.eric@gmail.com>2017-04-03 11:25:17 +0100
commit2f99a87441f91e7189cb6c07fc786e226e8ee5a3 (patch)
tree06c4749489a0626af38a5e558720b615b025b3c2
parente1f3bdf72c2f1ecb3e1da66902b3a1da998306f5 (diff)
downloadnumpy-2f99a87441f91e7189cb6c07fc786e226e8ee5a3.tar.gz
ENH: Use cmd on windows, rather than sh
-rwxr-xr-xruntests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py
index 4c2439bd9..1f8dc6e64 100755
--- a/runtests.py
+++ b/runtests.py
@@ -181,8 +181,8 @@ def main(argv):
sys.exit(0)
if args.shell:
- shell = os.environ.get('SHELL', 'sh')
- print("Spawning a Unix shell...")
+ shell = os.environ.get('SHELL', 'cmd' if os.name == 'nt' else 'sh')
+ print("Spawning a shell ({})...".format(shell))
subprocess.call([shell] + extra_argv)
sys.exit(0)