Skip to content

Commit 0348e2f

Browse files
committed
NF: add flag to disable doctests
Windows 2.7 64-bit fails doctests because of L attached to long variables. This flag allows us to drop the doctests.
1 parent f0f35ad commit 0348e2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/nipnost

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ To reproduce a standard ``nipy.test()`` run::
1010
1111
nipnost -A "not slow" /path/to/nipy/nipy
1212
13+
To run without doctests, add the flag ``--without-doctests``.
1314
"""
1415

1516
import sys
@@ -20,5 +21,9 @@ from nipy.fixes.numpy.testing.noseclasses import KnownFailure
2021

2122
if __name__ == '__main__':
2223
prepare_imports()
23-
argv = sys.argv + ['--with-nipydoctest', fpw_opt_str()]
24+
argv = sys.argv[:] + [fpw_opt_str()]
25+
if '--without-doctests' in argv:
26+
argv.remove('--without-doctests')
27+
else:
28+
argv.append('--with-nipydoctest')
2429
nose.core.TestProgram(argv=argv, addplugins=[NipyDoctest(), KnownFailure()])

0 commit comments

Comments
 (0)