[issue41914] test_pdb fails
Léon Planken added the comment: So I went ahead to fix the issue and created a PR. I also signed the CLA, but I understand that needs a little time to process. I was bold/forward enough to add myself to the ACKS. Please feel remove me if this contribution is too trivial. -- ___ Python tracker <https://bugs.python.org/issue41914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41914] test_pdb fails
Change by Léon Planken : -- pull_requests: +26948 pull_request: https://github.com/python/cpython/pull/28564 ___ Python tracker <https://bugs.python.org/issue41914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41914] test_pdb fails
Léon Planken added the comment: Here's the issue again when running test_pdb.py for 3.11 (repository main). The same problem now occurs twice, and only inside the `screen` environment. - 8< - ~/Temp/cpython> ./python Lib/test/test_pdb.py .F.F == FAIL: test_errors_in_command (__main__.PdbTestCase) -- Traceback (most recent call last): File "/home/leon/Temp/cpython/Lib/test/test_pdb.py", line 1847, in test_errors_in_command self.assertEqual(stdout.splitlines()[1:], [ ^^^ AssertionError: Lists differ: ['-> [278 chars]efined", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) ', '\x1b[?1034h'] != ['-> [278 chars]efined", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) '] First list contains 1 additional elements. First extra element 10: '\x1b[?1034h' ['-> pass', "(Pdb) *** SyntaxError: '(' was never closed", '(Pdb) ENTERING RECURSIVE DEBUGGER', "*** SyntaxError: '(' was never closed", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) ENTERING RECURSIVE DEBUGGER', '> (1)()', "((Pdb)) *** NameError: name 'doesnotexist' is not defined", 'LEAVING RECURSIVE DEBUGGER', - '(Pdb) ', ? ^ + '(Pdb) '] ? ^ - '\x1b[?1034h'] == FAIL: test_issue34266 (__main__.PdbTestCase) do_run handles exceptions from parsing its arg -- Traceback (most recent call last): File "/home/leon/Temp/cpython/Lib/test/test_pdb.py", line 1875, in test_issue34266 check('\\', 'No escaped character') ^^^ File "/home/leon/Temp/cpython/Lib/test/test_pdb.py", line 1870, in check self.assertEqual(stdout.splitlines()[1:], [ ^^^ AssertionError: Lists differ: ['-> [13 chars] *** Cannot run \\: No escaped character', '(Pdb) \x1b[?1034h'] != ['-> [13 chars] *** Cannot run \\: No escaped character', '(Pdb) '] First differing element 2: '(Pdb) \x1b[?1034h' '(Pdb) ' - ['-> pass', - '(Pdb) *** Cannot run \\: No escaped character', + ['-> pass', '(Pdb) *** Cannot run \\: No escaped character', '(Pdb) '] ? +++ ++ - '(Pdb) \x1b[?1034h'] -- Ran 56 tests in 2.850s FAILED (failures=2) -- versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue41914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45242] test_pdb fails
Léon Planken added the comment: (By the way, this was the only test that failed when running `make test` inside the `screen` environment.) -- ___ Python tracker <https://bugs.python.org/issue45242> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41914] test_pdb fails
Léon Planken added the comment: Re-opened as issue 45242 (also identified the culprit) -- nosy: +oliphaunt ___ Python tracker <https://bugs.python.org/issue41914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45242] test_pdb fails
New submission from Léon Planken : This is a re-opening of issue 41914 (and my first issue, so apologies for any mistakes). Building Python 3.7, I ran into the same issue reported there (only line numbers differ): == FAIL: test_errors_in_command (__main__.PdbTestCase) -- Traceback (most recent call last): File "Lib/test/test_pdb.py", line 1535, in test_errors_in_command '(Pdb) ', AssertionError: Lists differ: ['(Pd[283 chars]efined", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) ', '\x1b[?1034h'] != ['(Pd[283 chars]efined", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) '] First list contains 1 additional elements. First extra element 9: '\x1b[?1034h' ['(Pdb) *** SyntaxError: unexpected EOF while parsing', '(Pdb) ENTERING RECURSIVE DEBUGGER', '*** SyntaxError: unexpected EOF while parsing', 'LEAVING RECURSIVE DEBUGGER', '(Pdb) ENTERING RECURSIVE DEBUGGER', '> (1)()', "((Pdb)) *** NameError: name 'doesnotexist' is not defined", 'LEAVING RECURSIVE DEBUGGER', - '(Pdb) ', ? ^ + '(Pdb) '] ? ^ - '\x1b[?1034h'] -- Ran 39 tests in 1.024s FAILED (failures=1) I have also managed to determine the cause. As can be seen, the output from this pdb invocation contains an extraneous ANSI control sequence ("interpret "meta" key, set eighth bit"). This happens when running the test inside the GNU `screen` environment. Run the test outside `screen`, and the problem goes away. -- ___ Python tracker <https://bugs.python.org/issue45242> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45242] test_pdb fails
Change by Léon Planken : -- components: Tests nosy: oliphaunt priority: normal severity: normal status: open title: test_pdb fails versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue45242> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com