When running tests with 3.10.0 test_pdb_breakpoints_preserved_across_interactive_sessions test fails:
[ 842s] ======================================================================
[ 842s] FAIL: test_pdb_breakpoints_preserved_across_interactive_sessions (test.test_pdb)
[ 842s] Doctest: test.test_pdb.test_pdb_breakpoints_preserved_across_interactive_sessions
[ 842s] ----------------------------------------------------------------------
[ 842s] Traceback (most recent call last):
[ 842s] File "/home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/doctest.py", line 2216, in runTest
[ 842s] raise self.failureException(self.format_failure(new.getvalue()))
[ 842s] AssertionError: Failed doctest test for test.test_pdb.test_pdb_breakpoints_preserved_across_interactive_sessions
[ 842s] File "/home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py", line 327, in test_pdb_breakpoints_preserved_across_interactive_sessions
[ 842s]
[ 842s] ----------------------------------------------------------------------
[ 842s] File "/home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py", line 351, in test.test_pdb.test_pdb_breakpoints_preserved_across_interactive_sessions
[ 842s] Failed example:
[ 842s] with PdbTestInput([ # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
[ 842s] 'break',
[ 842s] 'break pdb.find_function',
[ 842s] 'break',
[ 842s] 'clear 1',
[ 842s] 'continue',
[ 842s] ]):
[ 842s] pdb.run('print()')
[ 842s] Expected:
[ 842s] > <string>(1)<module>()...
[ 842s] (Pdb) break
[ 842s] Num Type Disp Enb Where
[ 842s] 1 breakpoint keep yes at ...test_pdb.py:...
[ 842s] 2 breakpoint keep yes at ...test_pdb.py:...
[ 842s] (Pdb) break pdb.find_function
[ 842s] Breakpoint 3 at ...pdb.py:94
[ 842s] (Pdb) break
[ 842s] Num Type Disp Enb Where
[ 842s] 1 breakpoint keep yes at ...test_pdb.py:...
[ 842s] 2 breakpoint keep yes at ...test_pdb.py:...
[ 842s] 3 breakpoint keep yes at ...pdb.py:...
[ 842s] (Pdb) clear 1
[ 842s] Deleted breakpoint 1 at ...test_pdb.py:...
[ 842s] (Pdb) continue
[ 842s] Got:
[ 842s] > <string>(1)<module>()
[ 842s] (Pdb) break
[ 842s] Num Type Disp Enb Where
[ 842s] 1 breakpoint keep yes at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py:425
[ 842s] 2 breakpoint keep yes at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py:422
[ 842s] (Pdb) break pdb.find_function
[ 842s] Breakpoint 3 at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/pdb.py:93
[ 842s] (Pdb) break
[ 842s] Num Type Disp Enb Where
[ 842s] 1 breakpoint keep yes at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py:425
[ 842s] 2 breakpoint keep yes at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py:422
[ 842s] 3 breakpoint keep yes at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/pdb.py:93
[ 842s] (Pdb) clear 1
[ 842s] Deleted breakpoint 1 at /home/abuild/rpmbuild/BUILD/Python-3.10.0/Lib/test/test_pdb.py:425
[ 842s] (Pdb) continue
[ 842s] <BLANKLINE>
[ 842s]
[ 842s]
[ 842s] ----------------------------------------------------------------------
[ 842s] Ran 1 test in 0.005s
[ 842s]
[ 842s] FAILED (failures=1)
[ 842s] 1 test failed again:
[ 842s] test_pdb
[ 842s]
[ 842s] == Tests result: FAILURE then FAILURE ==
The problem is completely trivial and the attached patch fixes it (wrong line number in one expected result).
|