@@ -2628,9 +2628,9 @@ def test_testfile(): r"""
26282628 ...
26292629 NameError: name 'favorite_color' is not defined
26302630 **********************************************************************
2631- 1 items had failures:
2631+ 1 item had failures:
26322632 1 of 2 in test_doctest.txt
2633- ***Test Failed*** 1 failures .
2633+ ***Test Failed*** 1 failure .
26342634 TestResults(failed=1, attempted=2)
26352635 >>> doctest.master = None # Reset master.
26362636
@@ -2657,9 +2657,9 @@ def test_testfile(): r"""
26572657 Got:
26582658 'red'
26592659 **********************************************************************
2660- 1 items had failures:
2660+ 1 item had failures:
26612661 1 of 2 in test_doctest.txt
2662- ***Test Failed*** 1 failures .
2662+ ***Test Failed*** 1 failure .
26632663 TestResults(failed=1, attempted=2)
26642664 >>> doctest.master = None # Reset master.
26652665
@@ -2689,10 +2689,10 @@ def test_testfile(): r"""
26892689 <BLANKLINE>
26902690 b
26912691 ok
2692- 1 items passed all tests:
2692+ 1 item passed all tests:
26932693 2 tests in test_doctest.txt
2694- 2 tests in 1 items .
2695- 2 passed and 0 failed .
2694+ 2 tests in 1 item .
2695+ 2 passed.
26962696 Test passed.
26972697 TestResults(failed=0, attempted=2)
26982698 >>> doctest.master = None # Reset master.
@@ -2749,7 +2749,7 @@ def test_testfile(): r"""
27492749 **********************************************************************
27502750 ...
27512751 **********************************************************************
2752- 1 items had failures:
2752+ 1 item had failures:
27532753 2 of 2 in test_doctest4.txt
27542754 ***Test Failed*** 2 failures.
27552755 TestResults(failed=2, attempted=2)
@@ -2772,10 +2772,10 @@ def test_testfile(): r"""
27722772 Expecting:
27732773 'b\u0105r'
27742774 ok
2775- 1 items passed all tests:
2775+ 1 item passed all tests:
27762776 2 tests in test_doctest4.txt
2777- 2 tests in 1 items .
2778- 2 passed and 0 failed .
2777+ 2 tests in 1 item .
2778+ 2 passed.
27792779 Test passed.
27802780 TestResults(failed=0, attempted=2)
27812781 >>> doctest.master = None # Reset master.
@@ -2997,10 +2997,10 @@ def test_CLI(): r"""
29972997 Expecting:
29982998 'a'
29992999 ok
3000- 1 items passed all tests:
3000+ 1 item passed all tests:
30013001 2 tests in myfile.doc
3002- 2 tests in 1 items .
3003- 2 passed and 0 failed .
3002+ 2 tests in 1 item .
3003+ 2 passed.
30043004 Test passed.
30053005
30063006Now we'll write a couple files, one with three tests, the other a python module
@@ -3074,7 +3074,7 @@ def test_CLI(): r"""
30743074 Got:
30753075 'ajkml'
30763076 **********************************************************************
3077- 1 items had failures:
3077+ 1 item had failures:
30783078 2 of 3 in myfile.doc
30793079 ***Test Failed*** 2 failures.
30803080
@@ -3101,9 +3101,9 @@ def test_CLI(): r"""
31013101 Got:
31023102 'abcdef'
31033103 **********************************************************************
3104- 1 items had failures:
3104+ 1 item had failures:
31053105 1 of 2 in myfile.doc
3106- ***Test Failed*** 1 failures .
3106+ ***Test Failed*** 1 failure .
31073107
31083108The fifth test uses verbose with the two options, so we should get verbose
31093109success output for the tests in both files:
@@ -3126,10 +3126,10 @@ def test_CLI(): r"""
31263126 Expecting:
31273127 'a...l'
31283128 ok
3129- 1 items passed all tests:
3129+ 1 item passed all tests:
31303130 3 tests in myfile.doc
3131- 3 tests in 1 items .
3132- 3 passed and 0 failed .
3131+ 3 tests in 1 item .
3132+ 3 passed.
31333133 Test passed.
31343134 Trying:
31353135 1 + 1
@@ -3141,12 +3141,12 @@ def test_CLI(): r"""
31413141 Expecting:
31423142 'abc def'
31433143 ok
3144- 1 items had no tests:
3144+ 1 item had no tests:
31453145 myfile2
3146- 1 items passed all tests:
3146+ 1 item passed all tests:
31473147 2 tests in myfile2.test_func
31483148 2 tests in 2 items.
3149- 2 passed and 0 failed .
3149+ 2 passed.
31503150 Test passed.
31513151
31523152We should also check some typical error cases.
0 commit comments