Skip to content

Commit 9c3bff7

Browse files
committed
BF: use shell=True for windows script tests
The default shell=False for windows meant that we weren't picking up surrounding changes to the PATH, and so not finding scripts installed into a virtualenv.
1 parent 2655c5a commit 9c3bff7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipy/tests/test_scripts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
needs_mpl = decorators.skipif(not HAVE_MPL, "Test needs matplotlib")
3232
script_test = make_label_dec('script_test')
3333

34-
USE_SHELL = os.name != 'nt'
34+
# Need shell to get path to correct executables
35+
USE_SHELL = True
3536

3637
DEBUG_PRINT = os.environ.get('NIPY_DEBUG_PRINT', False)
3738

0 commit comments

Comments
 (0)