From 654fcd531ecab07a7af971a299ee5c2b35d4fa96 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 7 Aug 2004 06:15:12 +0000 Subject: Exercise DocTestSuite's search for __test__. --- Lib/test/test_sets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index 4947e6b..c5a48b1 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -806,7 +806,7 @@ Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack']) __test__ = {'libreftest' : libreftest} def test_main(verbose=None): - from test import test_sets + import test_sets, doctest test_support.run_unittest( TestSetOfSets, TestExceptionPropagation, @@ -835,8 +835,8 @@ def test_main(verbose=None): TestCopyingTuple, TestCopyingNested, TestIdentities, + doctest.DocTestSuite(test_sets), ) - test_support.run_doctest(test_sets, verbose) if __name__ == "__main__": test_main(verbose=True) -- cgit v0.12