lib-python/3/test/test_doctest::unmodified
== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 03:38:33) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-5.4.0-182-generic-i686-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /build_dir/tmp/pytest/test_python_worker_2039582æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 1586550684
0:00:00 load avg: 4.74 Run 1 test sequentially in a single process
0:00:00 load avg: 4.74 [1/1] test_doctest
test_empty_namespace_package (test.test_doctest.test_doctest.TestDocTestFinder.test_empty_namespace_package) ... ok
test_issue35753 (test.test_doctest.test_doctest.TestDocTestFinder.test_issue35753) ... ok
DebugRunner (doctest)
Doctest: doctest.DebugRunner ... ok
debug (doctest.DocTestCase)
Doctest: doctest.DocTestCase.debug ... ok
DocTestRunner (doctest)
Doctest: doctest.DocTestRunner ... ok
_TestClass (doctest)
Doctest: doctest._TestClass ... ok
__init__ (doctest._TestClass)
Doctest: doctest._TestClass.__init__ ... ok
get (doctest._TestClass)
Doctest: doctest._TestClass.get ... ok
square (doctest._TestClass)
Doctest: doctest._TestClass.square ... ok
blank lines (doctest.__test__)
Doctest: doctest.__test__.blank lines ... ok
bool-int equivalence (doctest.__test__)
Doctest: doctest.__test__.bool-int equivalence ... ok
ellipsis (doctest.__test__)
Doctest: doctest.__test__.ellipsis ... ok
string (doctest.__test__)
Doctest: doctest.__test__.string ... ok
whitespace normalization (doctest.__test__)
Doctest: doctest.__test__.whitespace normalization ... ok
_ellipsis_match (doctest)
Doctest: doctest._ellipsis_match ... ok
script_from_examples (doctest)
Doctest: doctest.script_from_examples ... ok
set_unittest_reportflags (doctest)
Doctest: doctest.set_unittest_reportflags ... ok
SampleClass (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.SampleClass ... ok
NestedClass (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.NestedClass ... ok
__init__ (test.test_doctest.test_doctest.SampleClass.NestedClass)
Doctest: test.test_doctest.test_doctest.SampleClass.NestedClass.__init__ ... ok
__init__ (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.__init__ ... ok
a_classmethod (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.a_classmethod ... ok
a_classmethod_property (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.a_classmethod_property ... ok
a_property (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.a_property ... ok
a_staticmethod (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.a_staticmethod ... ok
double (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.double ... ok
get (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.get ... ok
setter (test.test_doctest.test_doctest.SampleClass)
Doctest: test.test_doctest.test_doctest.SampleClass.setter ... ok
SampleNewStyleClass (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.SampleNewStyleClass ... ok
__init__ (test.test_doctest.test_doctest.SampleNewStyleClass)
Doctest: test.test_doctest.test_doctest.SampleNewStyleClass.__init__ ... ok
double (test.test_doctest.test_doctest.SampleNewStyleClass)
Doctest: test.test_doctest.test_doctest.SampleNewStyleClass.double ... ok
get (test.test_doctest.test_doctest.SampleNewStyleClass)
Doctest: test.test_doctest.test_doctest.SampleNewStyleClass.get ... ok
sample_func (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.sample_func ... ok
test_CLI (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_CLI ... ok
test_DocFileSuite (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_DocFileSuite ... ok
test_DocTest (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_DocTest ... ok
basics (test.test_doctest.test_doctest.test_DocTestFinder)
Doctest: test.test_doctest.test_doctest.test_DocTestFinder.basics ... ok
non_Python_modules (test.test_doctest.test_doctest.test_DocTestFinder)
Doctest: test.test_doctest.test_doctest.test_DocTestFinder.non_Python_modules ... FAIL
test_DocTestParser (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_DocTestParser ... ok
basics (test.test_doctest.test_doctest.test_DocTestRunner)
Doctest: test.test_doctest.test_doctest.test_DocTestRunner.basics ... ok
displayhook (test.test_doctest.test_doctest.test_DocTestRunner)
Doctest: test.test_doctest.test_doctest.test_DocTestRunner.displayhook ... ok
exceptions (test.test_doctest.test_doctest.test_DocTestRunner)
Doctest: test.test_doctest.test_doctest.test_DocTestRunner.exceptions ... ok
option_directives (test.test_doctest.test_doctest.test_DocTestRunner)
Doctest: test.test_doctest.test_doctest.test_DocTestRunner.option_directives ... ok
optionflags (test.test_doctest.test_doctest.test_DocTestRunner)
Doctest: test.test_doctest.test_doctest.test_DocTestRunner.optionflags ... ok
verbose_flag (test.test_doctest.test_doctest.test_DocTestRunner)
Doctest: test.test_doctest.test_doctest.test_DocTestRunner.verbose_flag ... ok
test_DocTestSuite (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_DocTestSuite ... ok
test_Example (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_Example ... ok
test_debug (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_debug ... ok
test_exception_with_multiple_notes (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_exception_with_multiple_notes ... ok
test_exception_with_note (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_exception_with_note ... ok
test_lineendings (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_lineendings ... ok
test_look_in_unwrapped (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_look_in_unwrapped ... ok
test_no_trailing_whitespace_stripping (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_no_trailing_whitespace_stripping ... ok
test_pdb_set_trace (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_pdb_set_trace ... ok
test_pdb_set_trace_nested (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_pdb_set_trace_nested ... ok
test_run_doctestsuite_multiple_times (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_run_doctestsuite_multiple_times ... ok
test_syntax_error_subclass_from_stdlib (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_syntax_error_subclass_from_stdlib ... ok
test_syntax_error_with_incorrect_expected_note (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_syntax_error_with_incorrect_expected_note ... ok
test_syntax_error_with_note (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_syntax_error_with_note ... ok
test_testfile (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_testfile ... ok
test_testmod (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_testmod ... ok
test_testsource (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_testsource ... ok
test_trailing_space_in_test (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_trailing_space_in_test ... ok
test_unicode (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_unicode ... ok
test_unittest_reportflags (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.test_unittest_reportflags ... ok
wrapped (test.test_doctest.test_doctest)
Doctest: test.test_doctest.test_doctest.wrapped ... ok
test_testmod (test.test_doctest.test_doctest2.Test.test_testmod) ... Trying:
print('yup') # 1
Expecting:
yup
ok
Trying:
print(C()) # 2
Expecting:
42
ok
Trying:
print("In D!") # 5
Expecting:
In D!
ok
Trying:
print(3) # 6
Expecting:
3
ok
Trying:
print(C()) # 3
Expecting:
42
ok
Trying:
print(C()) # 4
Expecting:
42
ok
Trying:
print(C.clsm(22)) # 18
Expecting:
22
ok
Trying:
print(C().clsm(23)) # 19
Expecting:
23
ok
Trying:
c = C() # 7
Expecting nothing
ok
Trying:
c.x = 12 # 8
Expecting nothing
ok
Trying:
print(c.x) # 9
Expecting:
-12
ok
Trying:
c = C() # 10
Expecting nothing
ok
Trying:
c.x = 12 # 11
Expecting nothing
ok
Trying:
print(c.x) # 12
Expecting:
-12
ok
Trying:
print(C.statm()) # 16
Expecting:
666
ok
Trying:
print(C().statm()) # 17
Expecting:
666
ok
Trying:
c = C() # 13
Expecting nothing
ok
Trying:
c.x = 12 # 14
Expecting nothing
ok
Trying:
print(c.x) # 15
Expecting:
-12
ok
2 items had no tests:
test.test_doctest.test_doctest2.Test
test.test_doctest.test_doctest2.Test.test_testmod
11 items passed all tests:
1 tests in test.test_doctest.test_doctest2
1 tests in test.test_doctest.test_doctest2.C
1 tests in test.test_doctest.test_doctest2.C.D
1 tests in test.test_doctest.test_doctest2.C.D.nested
1 tests in test.test_doctest.test_doctest2.C.__init__
1 tests in test.test_doctest.test_doctest2.C.__str__
2 tests in test.test_doctest.test_doctest2.C.clsm
3 tests in test.test_doctest.test_doctest2.C.getx
3 tests in test.test_doctest.test_doctest2.C.setx
2 tests in test.test_doctest.test_doctest2.C.statm
3 tests in test.test_doctest.test_doctest2.C.x
19 tests in 13 items.
19 passed and 0 failed.
Test passed.
ok
======================================================================
FAIL: non_Python_modules (test.test_doctest.test_doctest.test_DocTestFinder)
Doctest: test.test_doctest.test_doctest.test_DocTestFinder.non_Python_modules
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/doctest.py", line 2256, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for test.test_doctest.test_doctest.test_DocTestFinder.non_Python_modules
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_doctest/test_doctest.py", line 728, in non_Python_modules
----------------------------------------------------------------------
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_doctest/test_doctest.py", line 739, in test.test_doctest.test_doctest.test_DocTestFinder.non_Python_modules
Failed example:
830 < len(tests) < 860 # approximate number of objects with docstrings
Expected:
True
Got:
False
----------------------------------------------------------------------
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_doctest/test_doctest.py", line 742, in test.test_doctest.test_doctest.test_DocTestFinder.non_Python_modules
Failed example:
len(real_tests) # objects that actually have doctests
Expected:
14
Got:
5
----------------------------------------------------------------------
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_doctest/test_doctest.py", line 744, in test.test_doctest.test_doctest.test_DocTestFinder.non_Python_modules
Failed example:
for t in real_tests:
print('{} {}'.format(len(t.examples), t.name))
Expected:
1 builtins.bin
5 builtins.bytearray.hex
5 builtins.bytes.hex
3 builtins.float.as_integer_ratio
2 builtins.float.fromhex
2 builtins.float.hex
1 builtins.hex
1 builtins.int
3 builtins.int.as_integer_ratio
2 builtins.int.bit_count
2 builtins.int.bit_length
5 builtins.memoryview.hex
1 builtins.oct
1 builtins.zip
Got:
1 builtins.bin
1 builtins.hex
1 builtins.int
1 builtins.oct
1 builtins.zip
----------------------------------------------------------------------
Ran 67 tests in 4.812s
FAILED (failures=1)
0:00:05 load avg: 4.78 [1/1/1] test_doctest failed (1 failure)
== Tests result: FAILURE ==
1 test failed:
test_doctest
Total duration: 5.4 sec
Total tests: run=67 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_doctest failed
builder: pypy-c-jit-linux-x86-32 build #8377+
test: lib-python/3/test/test_doctest::unmodified