Kaydet (Commit) 654fcd53 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Exercise DocTestSuite's search for __test__.

üst d1b78272
...@@ -806,7 +806,7 @@ Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack']) ...@@ -806,7 +806,7 @@ Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack'])
__test__ = {'libreftest' : libreftest} __test__ = {'libreftest' : libreftest}
def test_main(verbose=None): def test_main(verbose=None):
from test import test_sets import test_sets, doctest
test_support.run_unittest( test_support.run_unittest(
TestSetOfSets, TestSetOfSets,
TestExceptionPropagation, TestExceptionPropagation,
...@@ -835,8 +835,8 @@ def test_main(verbose=None): ...@@ -835,8 +835,8 @@ def test_main(verbose=None):
TestCopyingTuple, TestCopyingTuple,
TestCopyingNested, TestCopyingNested,
TestIdentities, TestIdentities,
doctest.DocTestSuite(test_sets),
) )
test_support.run_doctest(test_sets, verbose)
if __name__ == "__main__": if __name__ == "__main__":
test_main(verbose=True) test_main(verbose=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment