@@ -1813,43 +1813,43 @@ def test_DocTestSuite():
18131813 >>> import test.sample_doctest
18141814 >>> suite = doctest.DocTestSuite(test.sample_doctest)
18151815 >>> suite.run(unittest.TestResult())
1816- <unittest.TestResult run=9 errors=0 failures=4>
1816+ <unittest.result. TestResult run=9 errors=0 failures=4>
18171817
18181818 We can also supply the module by name:
18191819
18201820 >>> suite = doctest.DocTestSuite('test.sample_doctest')
18211821 >>> suite.run(unittest.TestResult())
1822- <unittest.TestResult run=9 errors=0 failures=4>
1822+ <unittest.result. TestResult run=9 errors=0 failures=4>
18231823
18241824 We can use the current module:
18251825
18261826 >>> suite = test.sample_doctest.test_suite()
18271827 >>> suite.run(unittest.TestResult())
1828- <unittest.TestResult run=9 errors=0 failures=4>
1828+ <unittest.result. TestResult run=9 errors=0 failures=4>
18291829
18301830 We can supply global variables. If we pass globs, they will be
18311831 used instead of the module globals. Here we'll pass an empty
18321832 globals, triggering an extra error:
18331833
18341834 >>> suite = doctest.DocTestSuite('test.sample_doctest', globs={})
18351835 >>> suite.run(unittest.TestResult())
1836- <unittest.TestResult run=9 errors=0 failures=5>
1836+ <unittest.result. TestResult run=9 errors=0 failures=5>
18371837
18381838 Alternatively, we can provide extra globals. Here we'll make an
18391839 error go away by providing an extra global variable:
18401840
18411841 >>> suite = doctest.DocTestSuite('test.sample_doctest',
18421842 ... extraglobs={'y': 1})
18431843 >>> suite.run(unittest.TestResult())
1844- <unittest.TestResult run=9 errors=0 failures=3>
1844+ <unittest.result. TestResult run=9 errors=0 failures=3>
18451845
18461846 You can pass option flags. Here we'll cause an extra error
18471847 by disabling the blank-line feature:
18481848
18491849 >>> suite = doctest.DocTestSuite('test.sample_doctest',
18501850 ... optionflags=doctest.DONT_ACCEPT_BLANKLINE)
18511851 >>> suite.run(unittest.TestResult())
1852- <unittest.TestResult run=9 errors=0 failures=5>
1852+ <unittest.result. TestResult run=9 errors=0 failures=5>
18531853
18541854 You can supply setUp and tearDown functions:
18551855
@@ -1866,7 +1866,7 @@ def test_DocTestSuite():
18661866 >>> suite = doctest.DocTestSuite('test.sample_doctest',
18671867 ... setUp=setUp, tearDown=tearDown)
18681868 >>> suite.run(unittest.TestResult())
1869- <unittest.TestResult run=9 errors=0 failures=3>
1869+ <unittest.result. TestResult run=9 errors=0 failures=3>
18701870
18711871 But the tearDown restores sanity:
18721872
@@ -1884,7 +1884,7 @@ def test_DocTestSuite():
18841884
18851885 >>> suite = doctest.DocTestSuite('test.sample_doctest', setUp=setUp)
18861886 >>> suite.run(unittest.TestResult())
1887- <unittest.TestResult run=9 errors=0 failures=3>
1887+ <unittest.result. TestResult run=9 errors=0 failures=3>
18881888
18891889 Here, we didn't need to use a tearDown function because we
18901890 modified the test globals, which are a copy of the
@@ -1903,7 +1903,7 @@ def test_DocFileSuite():
19031903 ... 'test_doctest2.txt',
19041904 ... 'test_doctest4.txt')
19051905 >>> suite.run(unittest.TestResult())
1906- <unittest.TestResult run=3 errors=0 failures=2>
1906+ <unittest.result. TestResult run=3 errors=0 failures=2>
19071907
19081908 The test files are looked for in the directory containing the
19091909 calling module. A package keyword argument can be provided to
@@ -1915,7 +1915,7 @@ def test_DocFileSuite():
19151915 ... 'test_doctest4.txt',
19161916 ... package='test')
19171917 >>> suite.run(unittest.TestResult())
1918- <unittest.TestResult run=3 errors=0 failures=2>
1918+ <unittest.result. TestResult run=3 errors=0 failures=2>
19191919
19201920 Support for using a package's __loader__.get_data() is also
19211921 provided.
@@ -1934,14 +1934,14 @@ def test_DocFileSuite():
19341934 ... finally:
19351935 ... if added_loader:
19361936 ... del test.__loader__
1937- <unittest.TestResult run=3 errors=0 failures=2>
1937+ <unittest.result. TestResult run=3 errors=0 failures=2>
19381938
19391939 '/' should be used as a path separator. It will be converted
19401940 to a native separator at run time:
19411941
19421942 >>> suite = doctest.DocFileSuite('../test/test_doctest.txt')
19431943 >>> suite.run(unittest.TestResult())
1944- <unittest.TestResult run=1 errors=0 failures=1>
1944+ <unittest.result. TestResult run=1 errors=0 failures=1>
19451945
19461946 If DocFileSuite is used from an interactive session, then files
19471947 are resolved relative to the directory of sys.argv[0]:
@@ -1966,7 +1966,7 @@ def test_DocFileSuite():
19661966
19671967 >>> suite = doctest.DocFileSuite(test_file, module_relative=False)
19681968 >>> suite.run(unittest.TestResult())
1969- <unittest.TestResult run=1 errors=0 failures=1>
1969+ <unittest.result. TestResult run=1 errors=0 failures=1>
19701970
19711971 It is an error to specify `package` when `module_relative=False`:
19721972
@@ -1982,7 +1982,7 @@ def test_DocFileSuite():
19821982 ... 'test_doctest4.txt',
19831983 ... globs={'favorite_color': 'blue'})
19841984 >>> suite.run(unittest.TestResult())
1985- <unittest.TestResult run=3 errors=0 failures=1>
1985+ <unittest.result. TestResult run=3 errors=0 failures=1>
19861986
19871987 In this case, we supplied a missing favorite color. You can
19881988 provide doctest options:
@@ -1993,7 +1993,7 @@ def test_DocFileSuite():
19931993 ... optionflags=doctest.DONT_ACCEPT_BLANKLINE,
19941994 ... globs={'favorite_color': 'blue'})
19951995 >>> suite.run(unittest.TestResult())
1996- <unittest.TestResult run=3 errors=0 failures=2>
1996+ <unittest.result. TestResult run=3 errors=0 failures=2>
19971997
19981998 And, you can provide setUp and tearDown functions:
19991999
@@ -2012,7 +2012,7 @@ def test_DocFileSuite():
20122012 ... 'test_doctest4.txt',
20132013 ... setUp=setUp, tearDown=tearDown)
20142014 >>> suite.run(unittest.TestResult())
2015- <unittest.TestResult run=3 errors=0 failures=1>
2015+ <unittest.result. TestResult run=3 errors=0 failures=1>
20162016
20172017 But the tearDown restores sanity:
20182018
@@ -2031,7 +2031,7 @@ def test_DocFileSuite():
20312031
20322032 >>> suite = doctest.DocFileSuite('test_doctest.txt', setUp=setUp)
20332033 >>> suite.run(unittest.TestResult())
2034- <unittest.TestResult run=1 errors=0 failures=0>
2034+ <unittest.result. TestResult run=1 errors=0 failures=0>
20352035
20362036 Here, we didn't need to use a tearDown function because we
20372037 modified the test globals. The test globals are
@@ -2043,7 +2043,7 @@ def test_DocFileSuite():
20432043
20442044 >>> suite = doctest.DocFileSuite('test_doctest3.txt')
20452045 >>> suite.run(unittest.TestResult())
2046- <unittest.TestResult run=1 errors=0 failures=0>
2046+ <unittest.result. TestResult run=1 errors=0 failures=0>
20472047
20482048 If the tests contain non-ASCII characters, we have to specify which
20492049 encoding the file is encoded with. We do so by using the `encoding`
@@ -2054,7 +2054,7 @@ def test_DocFileSuite():
20542054 ... 'test_doctest4.txt',
20552055 ... encoding='utf-8')
20562056 >>> suite.run(unittest.TestResult())
2057- <unittest.TestResult run=3 errors=0 failures=2>
2057+ <unittest.result. TestResult run=3 errors=0 failures=2>
20582058
20592059 """
20602060
0 commit comments