From 7f3f37153471bc6ac566c6c4a44a72abd164a5db Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Mon, 22 Mar 2010 11:13:10 -0700 Subject: [PATCH] Added a note about grabbing the stdlib unit tests to the docs. --- doc/testing.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/testing.rst b/doc/testing.rst index 9e7c161..38a94db 100644 --- a/doc/testing.rst +++ b/doc/testing.rst @@ -47,6 +47,8 @@ There's a convenience module called all.py designed to handle the impedance mism That will run all the tests, though the output will be a little weird because it will look like Nose is running about 20 tests, each of which consists of a bunch of sub-tests. Not all test modules are present in all versions of Python, so there will be an occasional printout of "Not importing %s, it doesn't exist in this installation/version of Python". +If you see "Ran 0 tests in 0.001s", it means that your Python installation lacks its own tests. This is usually the case for Linux distributions. One way to get the missing tests is to download a source tarball (of the same version you have installed on your system!) and copy its Lib/test directory into the correct place on your PYTHONPATH. + Testing Eventlet Hubs --------------------- @@ -89,4 +91,4 @@ The html option is quite useful because it generates nicely-formatted HTML that coverage html -d cover --omit='tempmod,,tests' -(``tempmod`` and ``console`` are omitted because they gets thrown away at the completion of their unit tests and coverage.py isn't smart enough to detect this.) \ No newline at end of file +(``tempmod`` and ``console`` are omitted because they gets thrown away at the completion of their unit tests and coverage.py isn't smart enough to detect this.)