The Buildbot has detected a new failure on builder PPC64LE Fedora Rawhide Refleaks 3.12 while building Python. Full details are available at: https://buildbot.python.org/all/#/builders/1157/builds/371
Buildbot URL: https://buildbot.python.org/all/ Worker for this Build: cstratak-fedora-rawhide-ppc64le Build Reason: <unknown> Blamelist: BUILD FAILED: failed test (failure) Summary of the results of the build (if available): =================================================== == Captured traceback ================== Traceback (most recent call last): ValueError: line 1 of the doctest for s has an invalid option: '+BADOPTION' k Trying: s = '>>> print(12) #doctest: ELLIPSIS' Expecting nothing k Trying: test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0) Expecting: Traceback (most recent call last): ValueError: line 1 of the doctest for s has an invalid option: 'ELLIPSIS' k Trying: s = '>>> # doctest: +ELLIPSIS' Expecting nothing k Trying: test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0) Expecting: Traceback (most recent call last): ValueError: line 0 of the doctest for s has an option directive on a line with no example: '# doctest: +ELLIPSIS' k doctest (test_zipped_doctest) ... 33 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestRunner.optionflags Trying: def f(x): '>>> True\n1\n' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.DONT_ACCEPT_TRUE_FOR_1 Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: True Expected: 1 Got: True TestResults(failed=1, attempted=1) k Trying: def f(x): '>>> print("a\\n\\nb")\na\n<BLANKLINE>\nb\n' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.DONT_ACCEPT_BLANKLINE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: print("a\n\nb") Expected: a <BLANKLINE> b Got: a <BLANKLINE> b TestResults(failed=1, attempted=1) k Trying: def f(x): '>>> print(1, 2, 3)\n 1 2\n 3' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: print(1, 2, 3) Expected: 1 2 3 Got: 1 2 3 TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.NORMALIZE_WHITESPACE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE Expecting: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] k Trying: def f(x): '>>> print(list(range(15)))\n[0, 1, 2, ..., 14]\n' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: print(list(range(15))) Expected: [0, 1, 2, ..., 14] Got: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.ELLIPSIS Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: if 1: for i in range(100): print(i**2, end=' ') #doctest: +ELLIPSIS print('!') Expecting: 0 1...4...9 16 ... 36 49 64 ... 9801 ! k Trying: if 1: #doctest: +ELLIPSIS for i in range(20): print(i, end=' ') print(20) Expecting: 0 1 2 ...1...2...0 k Trying: print(list(range(20))) # doctest:+ELLIPSIS Expecting: [0, 1, ..., 18, 19] k Trying: print(list(range(20))) # doctest: +ELLIPSIS # doctest: +NORMALIZE_WHITESPACE Expecting: [0, 1, ..., 18, 19] k Trying: import random Expecting nothing k Trying: def f(x): r''' >>> print('\n'.join('abcdefg')) a B c d f g h ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print('\n'.join('abcdefg')) Expected: a B c d f g h Got: a b c d e f g TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_UDIFF Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print('\n'.join('abcdefg')) Differences (unified diff with -expected +actual): @@ -1,7 +1,7 @@ a -B +b c d +e f g -h TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_CDIFF Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print('\n'.join('abcdefg')) Differences (context diff with expected followed by actual): *************** *** 1,7 **** a ! B c d f g - h --- 1,7 ---- a ! b c d + e f g TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> print("a b c d e f g h i j k l m") a b c d e f g h i j k 1 m ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_NDIFF Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print("a b c d e f g h i j k l m") Differences (ndiff with -expected +actual): - a b c d e f g h i j k 1 m ? ^ + a b c d e f g h i j k l m ? + ++ ^ TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> print(1) # first success 1 >>> print(2) # first failure 200 >>> print(3) # second failure 300 >>> print(4) # second success 4 >>> print(5) # third failure 500 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_ONLY_FIRST_FAILURE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=3, attempted=5) k Trying: doctest.DocTestRunner(verbose=True, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: Trying: print(1) # first success Expecting: 1 ok Trying: print(2) # first failure Expecting: 200 ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=3, attempted=5) k Trying: flags = doctest.FAIL_FAST Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=1, attempted=2) k Trying: flags = doctest.FAIL_FAST | doctest.REPORT_ONLY_FIRST_FAILURE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=1, attempted=2) k Trying: def f(x): r''' >>> print(1) # first success 1 >>> raise ValueError(2) # first failure 200 >>> print(3) # second failure 300 >>> print(4) # second success 4 >>> print(5) # third failure 500 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_ONLY_FIRST_FAILURE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: raise ValueError(2) # first failure Exception raised: ... ValueError: 2 TestResults(failed=3, attempted=5) k Trying: flags = doctest.FAIL_FAST Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: raise ValueError(2) # first failure Exception raised: ... ValueError: 2 TestResults(failed=1, attempted=2) k Trying: unlikely = "UNLIKELY_OPTION_NAME" Expecting nothing k Trying: unlikely in doctest.OPTIONFLAGS_BY_NAME Expecting: False k Trying: new_flag_value = doctest.register_optionflag(unlikely) Expecting nothing k Trying: unlikely in doctest.OPTIONFLAGS_BY_NAME Expecting: True k Trying: redundant_flag_value = doctest.register_optionflag(unlikely) Expecting nothing k Trying: redundant_flag_value == new_flag_value Expecting: True k Trying: del doctest.OPTIONFLAGS_BY_NAME[unlikely] Expecting nothing k doctest (test_zipped_doctest) ... 65 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestRunner.verbose_flag Trying: def f(x): ''' >>> x = 12 >>> print(x) 12 >>> x//2 6 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=True).run(test) Expecting: Trying: x = 12 Expecting nothing ok Trying: print(x) Expecting: 12 ok Trying: x//2 Expecting: 6 ok TestResults(failed=0, attempted=3) k Trying: old_argv = sys.argv Expecting nothing k Trying: sys.argv = ['test'] Expecting nothing k Trying: doctest.DocTestRunner().run(test) Expecting: TestResults(failed=0, attempted=3) k Trying: sys.argv = ['test', '-v'] Expecting nothing k Trying: doctest.DocTestRunner().run(test) Expecting: Trying: x = 12 Expecting nothing ok Trying: print(x) Expecting: 12 ok Trying: x//2 Expecting: 6 ok TestResults(failed=0, attempted=3) k Trying: sys.argv = old_argv Expecting nothing k doctest (test_zipped_doctest) ... 9 tests with zero failures Finding tests in test_zipped_doctest.test_Example Trying: example = doctest.Example('print(1)', '1\n') Expecting nothing k Trying: (example.source, example.want, example.exc_msg, example.lineno, example.indent, example.options) Expecting: ('print(1)\n', '1\n', None, 0, 0, {}) k Trying: exc_msg = 'IndexError: pop from an empty list' Expecting nothing k Trying: example = doctest.Example('[].pop()', '', exc_msg, lineno=5, indent=4, options={doctest.ELLIPSIS: True}) Expecting nothing k Trying: (example.source, example.want, example.exc_msg, example.lineno, example.indent, example.options) Expecting: ('[].pop()\n', '', 'IndexError: pop from an empty list\n', 5, 4, {8: True}) k Trying: e = doctest.Example('print(1)', '1\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print(1)\n', '1\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print(1);\nprint(2)\n', '1\n2\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1);\nprint(2)\n', '1\n2\n') k Trying: e = doctest.Example('print(1);\nprint(2)', '1\n2\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1);\nprint(2)\n', '1\n2\n') k Trying: e = doctest.Example('', '') Expecting nothing k Trying: e.source, e.want Expecting: ('\n', '') k Trying: e = doctest.Example('print(1)', '1\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print(1)', '1') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print', '') Expecting nothing k Trying: e.source, e.want Expecting: ('print\n', '') k Trying: exc_msg = 'IndexError: pop from an empty list' Expecting nothing k Trying: e = doctest.Example('[].pop()', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'IndexError: pop from an empty list\n' k Trying: exc_msg = 'IndexError: pop from an empty list\n' Expecting nothing k Trying: e = doctest.Example('[].pop()', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'IndexError: pop from an empty list\n' k Trying: exc_msg = 'ValueError: 1\n 2' Expecting nothing k Trying: e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'ValueError: 1\n 2\n' k Trying: exc_msg = 'ValueError: 1\n 2\n' Expecting nothing k Trying: e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'ValueError: 1\n 2\n' k Trying: exc_msg = '' Expecting nothing k Trying: e = doctest.Example('raise X()', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: '\n' k Trying: example = doctest.Example('print 1', '1\n') Expecting nothing k Trying: same_example = doctest.Example('print 1', '1\n') Expecting nothing k Trying: other_example = doctest.Example('print 42', '42\n') Expecting nothing k Trying: example == same_example Expecting: True k Trying: example != same_example Expecting: False k Trying: hash(example) == hash(same_example) Expecting: True k Trying: example == other_example Expecting: False k Trying: example != other_example Expecting: True k doctest (test_zipped_doctest) ... 44 tests with zero failures Finding tests in test_zipped_doctest.test_debug Trying: s = ''' >>> x = 12 >>> print(x) 12 ''' Expecting nothing k Trying: real_stdin = sys.stdin Expecting nothing k Trying: sys.stdin = FakeInput(['next', 'print(x)', 'continue']) Expecting nothing k Trying: try: doctest.debug_src(s) finally: sys.stdin = real_stdin Expecting: > <string>(1)<module>() (Pdb) next 12 --Return-- > <string>(1)<module>()->None (Pdb) print(x) 12 (Pdb) continue k doctest (test_zipped_doctest) ... 4 tests with zero failures Finding tests in test_zipped_doctest.test_testsource Trying: import test_zipped_doctest as test_doctest Expecting nothing k Trying: name = 'test_zipped_doctest.sample_func' Expecting nothing k Trying: print(doctest.testsource(test_doctest, name)) Expecting: # Blah blah # print(sample_func(22)) # Expected: ## 44 # # Yee ha! <BLANKLINE> k Trying: name = 'test_zipped_doctest.SampleNewStyleClass' Expecting nothing k Trying: print(doctest.testsource(test_doctest, name)) Expecting: print('1\n2\n3') # Expected: ## 1 ## 2 ## 3 <BLANKLINE> k Trying: name = 'test_zipped_doctest.SampleClass.a_classmethod' Expecting nothing k Trying: print(doctest.testsource(test_doctest, name)) Expecting: print(SampleClass.a_classmethod(10)) # Expected: ## 12 print(SampleClass(0).a_classmethod(10)) # Expected: ## 12 <BLANKLINE> k doctest (test_zipped_doctest) ... 7 tests with zero failures Finding tests in test_zipped_doctest.test_trailing_space_in_test Trying: x, y = 'foo', '' Expecting nothing k Trying: print(x, y) Expecting: foo k doctest (test_zipped_doctest) ... 2 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestSuite Trying: import unittest Expecting nothing k Trying: import sample_zipped_doctest Expecting nothing k Trying: suite = doctest.DocTestSuite(sample_zipped_doctest) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest') Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest_no_doctests') Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=0 errors=0 failures=0> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings') Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=0 errors=0 failures=0> k Trying: suite = sample_zipped_doctest.test_suite() Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: finder = doctest.DocTestFinder() Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', test_finder=finder) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: finder = doctest.DocTestFinder() Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings', test_finder=finder) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=0 errors=0 failures=0> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', globs={}) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=5> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', extraglobs={'y': 1}) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=3> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', optionflags=doctest.DONT_ACCEPT_BLANKLINE) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=5> k Trying: def setUp(t): import test_zipped_doctest as test_doctest test_doctest.sillySetup = True Expecting nothing k Trying: def tearDown(t): import test_zipped_doctest as test_doctest del test_doctest.sillySetup Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', setUp=setUp, tearDown=tearDown) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=3> k Trying: import test_zipped_doctest as test_doctest Expecting nothing k Trying: test_doctest.sillySetup Expecting: Traceback (most recent call last): ... AttributeError: module 'test_zipped_doctest' has no attribute 'sillySetup' k Trying: def setUp(test): test.globs['y'] = 1 Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', setUp=setUp) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=3> k doctest (test_zipped_doctest) ... 33 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestFinder doctest (test_zipped_doctest) ... 0 tests with zero failures k Traceback (most recent call last): ZeroDivisionError: integer division or modulo by zero ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): ''' >>> x = 12 >>> print('pre-exception output', x//0) pre-exception output Traceback (most recent call last): ZeroDivisionError: integer division or modulo by zero ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 4, in f Failed example: print('pre-exception output', x//0) Exception raised: ... ZeroDivisionError: integer division or modulo by zero TestResults(failed=1, attempted=2) k Trying: def f(x): r''' >>> raise ValueError('multi\nline\nmessage') Traceback (most recent call last): ValueError: multi line message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: def f(x): r''' >>> raise ValueError('message') Traceback (most recent call last): ValueError: wrong message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: raise ValueError('message') Expected: Traceback (most recent call last): ValueError: wrong message Got: Traceback (most recent call last): ... ValueError: message TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ValueError: wrong message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') Traceback (most recent call last): HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 4, in f Failed example: raise HTTPException('message') Expected: Traceback (most recent call last): HTTPException: message Got: Traceback (most recent call last): ... http.client.HTTPException: message TestResults(failed=1, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') Traceback (most recent call last): http.client.HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): foo.bar.HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): TypeError: wrong type ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL Expected: Traceback (most recent call last): TypeError: wrong type Got: Traceback (most recent call last): ... ValueError: message TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): foo.bar.HTTPException ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): foo.bar.HTTPException: ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> 1//0 0 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: 1//0 Exception raised: Traceback (most recent call last): ... ZeroDivisionError: integer division or modulo by zero TestResults(failed=1, attempted=1) k doctest (test_zipped_doctest) ... 39 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestRunner.option_directives Trying: def f(x): r''' >>> print(list(range(10))) # should fail: no ellipsis [0, 1, ..., 9] Traceback (most recent call last): ValueError: line 4 of the docstring for some_test has inconsistent leading whitespace: 'indentation' k Trying: docstring = r''' >>> print(('bad indentation', ... 2)) ('bad', 'indentation') ''' Expecting nothing k Trying: parser.get_doctest(docstring, globs, 'some_test', 'filename', 0) Expecting: Traceback (most recent call last): ValueError: line 2 of the docstring for some_test has inconsistent leading whitespace: '... 2))' k Trying: docstring = '>>>print(1)\n1' Expecting nothing k Trying: parser.get_doctest(docstring, globs, 'some_test', 'filename', 0) Expecting: Traceback (most recent call last): ValueError: line 1 of the docstring for some_test lacks blank after >>>: '>>>print(1)' k Trying: docstring = '>>> if 1:\n...print(1)\n1' Expecting nothing k Trying: parser.get_doctest(docstring, globs, 'some_test', 'filename', 0) Expecting: Traceback (most recent call last): ValueError: line 2 of the docstring for some_test lacks blank after ...: '...print(1)' k Trying: docstring = ''' >>> print 12 12 ''' Expecting nothing k Trying: test = parser.get_doctest(docstring, globs, 'some_test', 'some_test', 20) Expecting nothing k Trying: same_test = parser.get_doctest(docstring, globs, 'some_test', 'some_test', 20) Expecting nothing k Trying: test == same_test Expecting: True k Trying: test != same_test Expecting: False k Trying: hash(test) == hash(same_test) Expecting: True k Trying: docstring = ''' >>> print 42 42 ''' Expecting nothing k Trying: other_test = parser.get_doctest(docstring, globs, 'other_test', 'other_file', 10) Expecting nothing k Trying: test == other_test Expecting: False k Trying: test != other_test Expecting: True k Trying: test < other_test Expecting: False k Trying: other_test < test Expecting: True k Trying: no_lineno = parser.get_doctest(docstring, globs, 'some_test', 'some_test', None) Expecting nothing k Trying: test.lineno is None Expecting: False k Trying: no_lineno.lineno is None Expecting: True k Trying: test < no_lineno Expecting: False k Trying: no_lineno < test Expecting: True k Trying: DocTestCase = doctest.DocTestCase Expecting nothing k Trying: test_case = DocTestCase(test) Expecting nothing k Trying: same_test_case = DocTestCase(same_test) Expecting nothing k Trying: other_test_case = DocTestCase(other_test) Expecting nothing k Trying: test_case == same_test_case Expecting: True k Trying: test_case != same_test_case Expecting: False k Trying: hash(test_case) == hash(same_test_case) Expecting: True k Trying: test == other_test_case Expecting: False k Trying: test != other_test_case Expecting: True k doctest (test_zipped_doctest) ... 46 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestParser Trying: s = ''' >>> x, y = 2, 3 # no output expected >>> if 1: ... print(x) ... print(y) 2 3 Test report =========== Failed tests: - test_zipimport_support - test_peg_generator - test.test_asyncio.test_futures - test_idle - test.test_asyncio.test_subprocess - test.test_concurrent_futures.test_shutdown - test_tabnanny - test.test_pydoc.test_pydoc - test_trace - test_enum - test_tokenize - test.test_asyncio.test_unix_events - test_getpass - test_functools - test_decimal - test_zoneinfo - test_unittest - test.test_inspect.test_inspect - test_curses - test_dataclasses - test_types - test_pdb - test_cgitb - test_rlcompleter Test leaking resources: - test_tabnanny: memory blocks - test_trace: references - test_zoneinfo: references - test_types: references - test_tabnanny: references - test_enum: references - test_pdb: memory blocks - test_rlcompleter: memory blocks - test_rlcompleter: references - test_pdb: references - test_unittest: memory blocks - test_idle: memory blocks - test_unix_events: memory blocks - test_shutdown: memory blocks - test_getpass: memory blocks - test_cgitb: memory blocks - test_functools: memory blocks - test_unittest: references - test_futures: memory blocks - test_curses: memory blocks - test_idle: references - test_getpass: references - test_unix_events: references - test_peg_generator: memory blocks - test_tokenize: memory blocks - test_cgitb: references - test_functools: references - test_inspect: memory blocks - test_pydoc: memory blocks - test_dataclasses: memory blocks - test_zipimport_support: memory blocks - test_futures: references - test_curses: references - test_decimal: memory blocks - test_peg_generator: references - test_subprocess: memory blocks - test_pydoc: references - test_tokenize: references - test_trace: memory blocks - test_inspect: references - test_decimal: references - test_dataclasses: references - test_zoneinfo: memory blocks - test_types: memory blocks - test_zipimport_support: references - test_subprocess: references - test_enum: memory blocks Sincerely, -The BuildbotThe Buildbot has detected a new failure on builder PPC64LE Fedora Rawhide NoGIL refleaks 3.12 while building Python. Full details are available at: https://buildbot.python.org/all/#/builders/1521/builds/5 Buildbot URL: https://buildbot.python.org/all/ Worker for this Build: cstratak-fedora-rawhide-ppc64le Build Reason: <unknown> Blamelist: BUILD FAILED: failed test (failure) Summary of the results of the build (if available): =================================================== == Captured traceback ================== Traceback (most recent call last): ValueError: line 1 of the doctest for s has an invalid option: '+BADOPTION' k Trying: s = '>>> print(12) #doctest: ELLIPSIS' Expecting nothing k Trying: test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0) Expecting: Traceback (most recent call last): ValueError: line 1 of the doctest for s has an invalid option: 'ELLIPSIS' k Trying: s = '>>> # doctest: +ELLIPSIS' Expecting nothing k Trying: test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0) Expecting: Traceback (most recent call last): ValueError: line 0 of the doctest for s has an option directive on a line with no example: '# doctest: +ELLIPSIS' k doctest (test_zipped_doctest) ... 33 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestRunner.optionflags Trying: def f(x): '>>> True\n1\n' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.DONT_ACCEPT_TRUE_FOR_1 Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: True Expected: 1 Got: True TestResults(failed=1, attempted=1) k Trying: def f(x): '>>> print("a\\n\\nb")\na\n<BLANKLINE>\nb\n' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.DONT_ACCEPT_BLANKLINE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: print("a\n\nb") Expected: a <BLANKLINE> b Got: a <BLANKLINE> b TestResults(failed=1, attempted=1) k Trying: def f(x): '>>> print(1, 2, 3)\n 1 2\n 3' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: print(1, 2, 3) Expected: 1 2 3 Got: 1 2 3 TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.NORMALIZE_WHITESPACE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE Expecting: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] k Trying: def f(x): '>>> print(list(range(15)))\n[0, 1, 2, ..., 14]\n' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 2, in f Failed example: print(list(range(15))) Expected: [0, 1, 2, ..., 14] Got: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.ELLIPSIS Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: if 1: for i in range(100): print(i**2, end=' ') #doctest: +ELLIPSIS print('!') Expecting: 0 1...4...9 16 ... 36 49 64 ... 9801 ! k Trying: if 1: #doctest: +ELLIPSIS for i in range(20): print(i, end=' ') print(20) Expecting: 0 1 2 ...1...2...0 k Trying: print(list(range(20))) # doctest:+ELLIPSIS Expecting: [0, 1, ..., 18, 19] k Trying: print(list(range(20))) # doctest: +ELLIPSIS # doctest: +NORMALIZE_WHITESPACE Expecting: [0, 1, ..., 18, 19] k Trying: import random Expecting nothing k Trying: def f(x): r''' >>> print('\n'.join('abcdefg')) a B c d f g h ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print('\n'.join('abcdefg')) Expected: a B c d f g h Got: a b c d e f g TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_UDIFF Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print('\n'.join('abcdefg')) Differences (unified diff with -expected +actual): @@ -1,7 +1,7 @@ a -B +b c d +e f g -h TestResults(failed=1, attempted=1) k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_CDIFF Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print('\n'.join('abcdefg')) Differences (context diff with expected followed by actual): *************** *** 1,7 **** a ! B c d f g - h --- 1,7 ---- a ! b c d + e f g TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> print("a b c d e f g h i j k l m") a b c d e f g h i j k 1 m ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_NDIFF Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: print("a b c d e f g h i j k l m") Differences (ndiff with -expected +actual): - a b c d e f g h i j k 1 m ? ^ + a b c d e f g h i j k l m ? + ++ ^ TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> print(1) # first success 1 >>> print(2) # first failure 200 >>> print(3) # second failure 300 >>> print(4) # second success 4 >>> print(5) # third failure 500 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_ONLY_FIRST_FAILURE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=3, attempted=5) k Trying: doctest.DocTestRunner(verbose=True, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: Trying: print(1) # first success Expecting: 1 ok Trying: print(2) # first failure Expecting: 200 ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=3, attempted=5) k Trying: flags = doctest.FAIL_FAST Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=1, attempted=2) k Trying: flags = doctest.FAIL_FAST | doctest.REPORT_ONLY_FIRST_FAILURE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: print(2) # first failure Expected: 200 Got: 2 TestResults(failed=1, attempted=2) k Trying: def f(x): r''' >>> print(1) # first success 1 >>> raise ValueError(2) # first failure 200 >>> print(3) # second failure 300 >>> print(4) # second success 4 >>> print(5) # third failure 500 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: flags = doctest.REPORT_ONLY_FIRST_FAILURE Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: raise ValueError(2) # first failure Exception raised: ... ValueError: 2 TestResults(failed=3, attempted=5) k Trying: flags = doctest.FAIL_FAST Expecting nothing k Trying: doctest.DocTestRunner(verbose=False, optionflags=flags).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 5, in f Failed example: raise ValueError(2) # first failure Exception raised: ... ValueError: 2 TestResults(failed=1, attempted=2) k Trying: unlikely = "UNLIKELY_OPTION_NAME" Expecting nothing k Trying: unlikely in doctest.OPTIONFLAGS_BY_NAME Expecting: False k Trying: new_flag_value = doctest.register_optionflag(unlikely) Expecting nothing k Trying: unlikely in doctest.OPTIONFLAGS_BY_NAME Expecting: True k Trying: redundant_flag_value = doctest.register_optionflag(unlikely) Expecting nothing k Trying: redundant_flag_value == new_flag_value Expecting: True k Trying: del doctest.OPTIONFLAGS_BY_NAME[unlikely] Expecting nothing k doctest (test_zipped_doctest) ... 65 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestRunner.verbose_flag Trying: def f(x): ''' >>> x = 12 >>> print(x) 12 >>> x//2 6 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=True).run(test) Expecting: Trying: x = 12 Expecting nothing ok Trying: print(x) Expecting: 12 ok Trying: x//2 Expecting: 6 ok TestResults(failed=0, attempted=3) k Trying: old_argv = sys.argv Expecting nothing k Trying: sys.argv = ['test'] Expecting nothing k Trying: doctest.DocTestRunner().run(test) Expecting: TestResults(failed=0, attempted=3) k Trying: sys.argv = ['test', '-v'] Expecting nothing k Trying: doctest.DocTestRunner().run(test) Expecting: Trying: x = 12 Expecting nothing ok Trying: print(x) Expecting: 12 ok Trying: x//2 Expecting: 6 ok TestResults(failed=0, attempted=3) k Trying: sys.argv = old_argv Expecting nothing k doctest (test_zipped_doctest) ... 9 tests with zero failures Finding tests in test_zipped_doctest.test_Example Trying: example = doctest.Example('print(1)', '1\n') Expecting nothing k Trying: (example.source, example.want, example.exc_msg, example.lineno, example.indent, example.options) Expecting: ('print(1)\n', '1\n', None, 0, 0, {}) k Trying: exc_msg = 'IndexError: pop from an empty list' Expecting nothing k Trying: example = doctest.Example('[].pop()', '', exc_msg, lineno=5, indent=4, options={doctest.ELLIPSIS: True}) Expecting nothing k Trying: (example.source, example.want, example.exc_msg, example.lineno, example.indent, example.options) Expecting: ('[].pop()\n', '', 'IndexError: pop from an empty list\n', 5, 4, {8: True}) k Trying: e = doctest.Example('print(1)', '1\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print(1)\n', '1\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print(1);\nprint(2)\n', '1\n2\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1);\nprint(2)\n', '1\n2\n') k Trying: e = doctest.Example('print(1);\nprint(2)', '1\n2\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1);\nprint(2)\n', '1\n2\n') k Trying: e = doctest.Example('', '') Expecting nothing k Trying: e.source, e.want Expecting: ('\n', '') k Trying: e = doctest.Example('print(1)', '1\n') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print(1)', '1') Expecting nothing k Trying: e.source, e.want Expecting: ('print(1)\n', '1\n') k Trying: e = doctest.Example('print', '') Expecting nothing k Trying: e.source, e.want Expecting: ('print\n', '') k Trying: exc_msg = 'IndexError: pop from an empty list' Expecting nothing k Trying: e = doctest.Example('[].pop()', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'IndexError: pop from an empty list\n' k Trying: exc_msg = 'IndexError: pop from an empty list\n' Expecting nothing k Trying: e = doctest.Example('[].pop()', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'IndexError: pop from an empty list\n' k Trying: exc_msg = 'ValueError: 1\n 2' Expecting nothing k Trying: e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'ValueError: 1\n 2\n' k Trying: exc_msg = 'ValueError: 1\n 2\n' Expecting nothing k Trying: e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: 'ValueError: 1\n 2\n' k Trying: exc_msg = '' Expecting nothing k Trying: e = doctest.Example('raise X()', '', exc_msg) Expecting nothing k Trying: e.exc_msg Expecting: '\n' k Trying: example = doctest.Example('print 1', '1\n') Expecting nothing k Trying: same_example = doctest.Example('print 1', '1\n') Expecting nothing k Trying: other_example = doctest.Example('print 42', '42\n') Expecting nothing k Trying: example == same_example Expecting: True k Trying: example != same_example Expecting: False k Trying: hash(example) == hash(same_example) Expecting: True k Trying: example == other_example Expecting: False k Trying: example != other_example Expecting: True k doctest (test_zipped_doctest) ... 44 tests with zero failures Finding tests in test_zipped_doctest.test_debug Trying: s = ''' >>> x = 12 >>> print(x) 12 ''' Expecting nothing k Trying: real_stdin = sys.stdin Expecting nothing k Trying: sys.stdin = FakeInput(['next', 'print(x)', 'continue']) Expecting nothing k Trying: try: doctest.debug_src(s) finally: sys.stdin = real_stdin Expecting: > <string>(1)<module>() (Pdb) next 12 --Return-- > <string>(1)<module>()->None (Pdb) print(x) 12 (Pdb) continue k doctest (test_zipped_doctest) ... 4 tests with zero failures Finding tests in test_zipped_doctest.test_testsource Trying: import test_zipped_doctest as test_doctest Expecting nothing k Trying: name = 'test_zipped_doctest.sample_func' Expecting nothing k Trying: print(doctest.testsource(test_doctest, name)) Expecting: # Blah blah # print(sample_func(22)) # Expected: ## 44 # # Yee ha! <BLANKLINE> k Trying: name = 'test_zipped_doctest.SampleNewStyleClass' Expecting nothing k Trying: print(doctest.testsource(test_doctest, name)) Expecting: print('1\n2\n3') # Expected: ## 1 ## 2 ## 3 <BLANKLINE> k Trying: name = 'test_zipped_doctest.SampleClass.a_classmethod' Expecting nothing k Trying: print(doctest.testsource(test_doctest, name)) Expecting: print(SampleClass.a_classmethod(10)) # Expected: ## 12 print(SampleClass(0).a_classmethod(10)) # Expected: ## 12 <BLANKLINE> k doctest (test_zipped_doctest) ... 7 tests with zero failures Finding tests in test_zipped_doctest.test_trailing_space_in_test Trying: x, y = 'foo', '' Expecting nothing k Trying: print(x, y) Expecting: foo k doctest (test_zipped_doctest) ... 2 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestSuite Trying: import unittest Expecting nothing k Trying: import sample_zipped_doctest Expecting nothing k Trying: suite = doctest.DocTestSuite(sample_zipped_doctest) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest') Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest_no_doctests') Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=0 errors=0 failures=0> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings') Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=0 errors=0 failures=0> k Trying: suite = sample_zipped_doctest.test_suite() Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: finder = doctest.DocTestFinder() Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', test_finder=finder) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=4> k Trying: finder = doctest.DocTestFinder() Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings', test_finder=finder) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=0 errors=0 failures=0> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', globs={}) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=5> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', extraglobs={'y': 1}) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=3> k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', optionflags=doctest.DONT_ACCEPT_BLANKLINE) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=5> k Trying: def setUp(t): import test_zipped_doctest as test_doctest test_doctest.sillySetup = True Expecting nothing k Trying: def tearDown(t): import test_zipped_doctest as test_doctest del test_doctest.sillySetup Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', setUp=setUp, tearDown=tearDown) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=3> k Trying: import test_zipped_doctest as test_doctest Expecting nothing k Trying: test_doctest.sillySetup Expecting: Traceback (most recent call last): ... AttributeError: module 'test_zipped_doctest' has no attribute 'sillySetup' k Trying: def setUp(test): test.globs['y'] = 1 Expecting nothing k Trying: suite = doctest.DocTestSuite('sample_zipped_doctest', setUp=setUp) Expecting nothing k Trying: suite.run(unittest.TestResult()) Expecting: <unittest.result.TestResult run=9 errors=0 failures=3> k doctest (test_zipped_doctest) ... 33 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestFinder doctest (test_zipped_doctest) ... 0 tests with zero failures k Traceback (most recent call last): ZeroDivisionError: integer division or modulo by zero ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): ''' >>> x = 12 >>> print('pre-exception output', x//0) pre-exception output Traceback (most recent call last): ZeroDivisionError: integer division or modulo by zero ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 4, in f Failed example: print('pre-exception output', x//0) Exception raised: ... ZeroDivisionError: integer division or modulo by zero TestResults(failed=1, attempted=2) k Trying: def f(x): r''' >>> raise ValueError('multi\nline\nmessage') Traceback (most recent call last): ValueError: multi line message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: def f(x): r''' >>> raise ValueError('message') Traceback (most recent call last): ValueError: wrong message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: raise ValueError('message') Expected: Traceback (most recent call last): ValueError: wrong message Got: Traceback (most recent call last): ... ValueError: message TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ValueError: wrong message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=1) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') Traceback (most recent call last): HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 4, in f Failed example: raise HTTPException('message') Expected: Traceback (most recent call last): HTTPException: message Got: Traceback (most recent call last): ... http.client.HTTPException: message TestResults(failed=1, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') Traceback (most recent call last): http.client.HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): foo.bar.HTTPException: message ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): TypeError: wrong type ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL Expected: Traceback (most recent call last): TypeError: wrong type Got: Traceback (most recent call last): ... ValueError: message TestResults(failed=1, attempted=1) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): foo.bar.HTTPException ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> from http.client import HTTPException >>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): foo.bar.HTTPException: ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) Expecting: TestResults(failed=0, attempted=2) k Trying: def f(x): r''' >>> 1//0 0 ''' Expecting nothing k Trying: test = doctest.DocTestFinder().find(f)[0] Expecting nothing k Trying: doctest.DocTestRunner(verbose=False).run(test) # doctest: +ELLIPSIS Expecting: ********************************************************************** File ..., line 3, in f Failed example: 1//0 Exception raised: Traceback (most recent call last): ... ZeroDivisionError: integer division or modulo by zero TestResults(failed=1, attempted=1) k doctest (test_zipped_doctest) ... 39 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestRunner.option_directives Trying: def f(x): r''' >>> print(list(range(10))) # should fail: no ellipsis [0, 1, ..., 9] Traceback (most recent call last): ValueError: line 4 of the docstring for some_test has inconsistent leading whitespace: 'indentation' k Trying: docstring = r''' >>> print(('bad indentation', ... 2)) ('bad', 'indentation') ''' Expecting nothing k Trying: parser.get_doctest(docstring, globs, 'some_test', 'filename', 0) Expecting: Traceback (most recent call last): ValueError: line 2 of the docstring for some_test has inconsistent leading whitespace: '... 2))' k Trying: docstring = '>>>print(1)\n1' Expecting nothing k Trying: parser.get_doctest(docstring, globs, 'some_test', 'filename', 0) Expecting: Traceback (most recent call last): ValueError: line 1 of the docstring for some_test lacks blank after >>>: '>>>print(1)' k Trying: docstring = '>>> if 1:\n...print(1)\n1' Expecting nothing k Trying: parser.get_doctest(docstring, globs, 'some_test', 'filename', 0) Expecting: Traceback (most recent call last): ValueError: line 2 of the docstring for some_test lacks blank after ...: '...print(1)' k Trying: docstring = ''' >>> print 12 12 ''' Expecting nothing k Trying: test = parser.get_doctest(docstring, globs, 'some_test', 'some_test', 20) Expecting nothing k Trying: same_test = parser.get_doctest(docstring, globs, 'some_test', 'some_test', 20) Expecting nothing k Trying: test == same_test Expecting: True k Trying: test != same_test Expecting: False k Trying: hash(test) == hash(same_test) Expecting: True k Trying: docstring = ''' >>> print 42 42 ''' Expecting nothing k Trying: other_test = parser.get_doctest(docstring, globs, 'other_test', 'other_file', 10) Expecting nothing k Trying: test == other_test Expecting: False k Trying: test != other_test Expecting: True k Trying: test < other_test Expecting: False k Trying: other_test < test Expecting: True k Trying: no_lineno = parser.get_doctest(docstring, globs, 'some_test', 'some_test', None) Expecting nothing k Trying: test.lineno is None Expecting: False k Trying: no_lineno.lineno is None Expecting: True k Trying: test < no_lineno Expecting: False k Trying: no_lineno < test Expecting: True k Trying: DocTestCase = doctest.DocTestCase Expecting nothing k Trying: test_case = DocTestCase(test) Expecting nothing k Trying: same_test_case = DocTestCase(same_test) Expecting nothing k Trying: other_test_case = DocTestCase(other_test) Expecting nothing k Trying: test_case == same_test_case Expecting: True k Trying: test_case != same_test_case Expecting: False k Trying: hash(test_case) == hash(same_test_case) Expecting: True k Trying: test == other_test_case Expecting: False k Trying: test != other_test_case Expecting: True k doctest (test_zipped_doctest) ... 46 tests with zero failures Finding tests in test_zipped_doctest.test_DocTestParser Trying: s = ''' >>> x, y = 2, 3 # no output expected >>> if 1: ... print(x) ... print(y) 2 3 Test report =========== Failed tests: - test_zipimport_support - test_peg_generator - test.test_asyncio.test_futures - test_idle - test.test_asyncio.test_subprocess - test_tabnanny - test.test_pydoc.test_pydoc - test_trace - test_enum - test_tokenize - test.test_asyncio.test_unix_events - test_getpass - test_functools - test_decimal - test_zoneinfo - test_unittest - test.test_inspect.test_inspect - test_curses - test_dataclasses - test_types - test_pdb - test_cgitb - test_rlcompleter Test leaking resources: - test_tabnanny: memory blocks - test_trace: references - test_zoneinfo: references - test_types: references - test_tabnanny: references - test_pdb: memory blocks - test_enum: references - test_rlcompleter: memory blocks - test_rlcompleter: references - test_pdb: references - test_unittest: memory blocks - test_idle: memory blocks - test_unix_events: memory blocks - test_getpass: memory blocks - test_cgitb: memory blocks - test_functools: memory blocks - test_unittest: references - test_futures: memory blocks - test_curses: memory blocks - test_idle: references - test_peg_generator: memory blocks - test_getpass: references - test_unix_events: references - test_tokenize: memory blocks - test_cgitb: references - test_functools: references - test_inspect: memory blocks - test_pydoc: memory blocks - test_dataclasses: memory blocks - test_zipimport_support: memory blocks - test_futures: references - test_curses: references - test_decimal: memory blocks - test_peg_generator: references - test_subprocess: memory blocks - test_pydoc: references - test_tokenize: references - test_trace: memory blocks - test_inspect: references - test_decimal: references - test_dataclasses: references - test_zoneinfo: memory blocks - test_types: memory blocks - test_zipimport_support: references - test_subprocess: references - test_enum: memory blocks Sincerely, -The Buildbot _______________________________________________ Buildbot-status mailing list -- buildbot-status@python.org To unsubscribe send an email to buildbot-status-le...@python.org https://mail.python.org/mailman3/lists/buildbot-status.python.org/ Member address: arch...@mail-archive.com