This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcepl
Recipients mcepl
Date 2021-12-02.13:50:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638453038.24.0.528506960629.issue45964@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2021-12-02 13:50:38mceplsetrecipients: + mcepl
2021-12-02 13:50:38mceplsetmessageid: <1638453038.24.0.528506960629.issue45964@roundup.psfhosted.org>
2021-12-02 13:50:38mcepllinkissue45964 messages
2021-12-02 13:50:38mceplcreate