@@ -367,7 +367,7 @@ customizations to the nose testing infrastructure are in
367
367
:mod: `matplotlib.testing `. (There is other old testing cruft around,
368
368
please ignore it while we consolidate our testing to these locations.)
369
369
370
- .. _nose : http ://somethingaboutorange.com/mrl/projects/nose /
370
+ .. _nose : https ://nose.readthedocs.org/en/latest /
371
371
372
372
Requirements
373
373
------------
@@ -386,33 +386,34 @@ Running the tests
386
386
387
387
Running the tests is simple. Make sure you have nose installed and run
388
388
the script :file: `tests.py ` in the root directory of the distribution.
389
+
389
390
The script can take any of the usual `nosetest arguments `_, such as
390
391
391
- =================== ===========
392
- ``-v `` increase verbosity
393
- ``-d `` detailed error messages
394
- ``--with-coverage `` enable collecting coverage information
395
- =================== ===========
392
+ =================== ===========
393
+ ``-v `` increase verbosity
394
+ ``-d `` detailed error messages
395
+ ``--with-coverage `` enable collecting coverage information
396
+ =================== ===========
396
397
397
- To run a single test from the command line, you can provide a
398
- dot-separated path to the module followed by the function separated by
399
- a colon, eg. (this is assuming the test is installed)::
398
+ To run a single test from the command line, you can provide a
399
+ dot-separated path to the module followed by the function separated by
400
+ a colon, eg. (this is assuming the test is installed)::
400
401
401
- python tests.py matplotlib.tests.test_simplification:test_clipping
402
+ python tests.py matplotlib.tests.test_simplification:test_clipping
402
403
403
- An alternative implementation that does not look at command line
404
- arguments works from within Python::
404
+ An alternative implementation that does not look at command line
405
+ arguments works from within Python::
405
406
406
- import matplotlib
407
- matplotlib.test()
407
+ import matplotlib
408
+ matplotlib.test()
408
409
409
410
410
- .. _`nosetest arguments` : http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html
411
+ .. _`nosetest arguments` : http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html
411
412
412
413
413
- Running tests by any means other than `matplotlib.test() `
414
- does not load the nose "knownfailureif" (Known failing tests) plugin,
415
- causing known-failing tests to fail for real.
414
+ Running tests by any means other than `matplotlib.test() `
415
+ does not load the nose "knownfailureif" (Known failing tests) plugin,
416
+ causing known-failing tests to fail for real.
416
417
417
418
Writing a simple test
418
419
---------------------
0 commit comments