diff options
author | Barry Warsaw <barry@python.org> | 2002-07-23 19:13:45 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-07-23 19:13:45 (GMT) |
commit | 1bfab7bc019b576dee6d5af5098d0dc8f9d26f43 (patch) | |
tree | 8a853ae2d41149eae3f1d1db1fd9c27a60eb2d7c /Lib | |
parent | 04f357cffef6d764f2f0ff2671dabde75ec250d1 (diff) | |
download | cpython-1bfab7bc019b576dee6d5af5098d0dc8f9d26f43.zip cpython-1bfab7bc019b576dee6d5af5098d0dc8f9d26f43.tar.gz cpython-1bfab7bc019b576dee6d5af5098d0dc8f9d26f43.tar.bz2 |
A few updates about how/where to import test_support from.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/README | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/README b/Lib/test/README index 13e740c..9a3244f 100644 --- a/Lib/test/README +++ b/Lib/test/README @@ -85,7 +85,8 @@ The module in the test package is simply a wrapper that causes doctest to run over the tests in the module. The test for the difflib module provides a convenient example: - import difflib, test_support + import difflib + from test import test_support test_support.run_doctest(difflib) If the test is successful, nothing is written to stdout (so you should not @@ -101,8 +102,8 @@ of the regrtest framework. The tail end of test_descrtut.py is a good example: def test_main(verbose=None): - import test_support, test.test_descrtut - test_support.run_doctest(test.test_descrtut, verbose) + from test import test_support, test_descrtut + test_support.run_doctest(test_descrtut, verbose) if __name__ == "__main__": test_main(1) @@ -275,7 +276,7 @@ based tests should follow the conventions natural to those frameworks): Miscellaneous -There is a test_support module in the test package you can import from +There is a test_support module in the test package you can import for your test case. Import this module using either import test.test_support |