From 199535c5c34360be7238c80b25d810abce62e6e4 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Mon, 15 Aug 2011 12:38:13 -0700 Subject: ENH: move doctest tests to own file with ifmain The doctesting tests were in the code file, and (for me) rather difficult to run without running lots of other tests. With this change you can run the doctest tests in isolation by executing the test_doctesting.py file. --- numpy/testing/nosetester.py | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'numpy/testing/nosetester.py') diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index c6bd9a110..4d716ca25 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -401,32 +401,3 @@ class NoseTester(object): return nose.run(argv=argv, addplugins=add_plugins) - -######################################################################## -# Doctests for NumPy-specific nose/doctest modifications - -# try the #random directive on the output line -def check_random_directive(): - ''' - >>> 2+2 - #random: may vary on your system - ''' - -# check the implicit "import numpy as np" -def check_implicit_np(): - ''' - >>> np.array([1,2,3]) - array([1, 2, 3]) - ''' - -# there's some extraneous whitespace around the correct responses -def check_whitespace_enabled(): - ''' - # whitespace after the 3 - >>> 1+2 - 3 - - # whitespace before the 7 - >>> 3+4 - 7 - ''' -- cgit v1.2.1