New submission from Aritra Sarkar <aritra1...@yahoo.com>:
While running `make test` on Python 3.11.0a1, I get this: == Tests result: FAILURE == 411 tests OK. 2 tests failed: test_exceptions test_threading 14 tests skipped: test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 0:06:19 load avg: 5.05 0:06:19 load avg: 5.05 Re-running failed tests in verbose mode 0:06:19 load avg: 5.05 Re-running test_exceptions in verbose mode (matching: test_name_error_suggestions_do_not_trigger_for_too_many_locals) test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests) ... test test_exceptions failed FAIL ====================================================================== FAIL: test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1843, in test_name_error_suggestions_do_not_trigger_for_too_many_locals self.assertNotIn("a1", err.getvalue()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 'a1' unexpectedly found in 'Traceback (most recent call last):\n File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1838, in test_name_error_suggestions_do_not_trigger_for_too_many_locals\n f()\n ^^^\n File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1835, in f\n print(a0)\n ^^\nNameError: name \'a0\' is not defined\n' ---------------------------------------------------------------------- Ran 1 test in 0.006s FAILED (failures=1) 0:06:19 load avg: 5.05 Re-running test_threading in verbose mode (matching: test_recursion_limit) test_recursion_limit (test.test_threading.ThreadingExceptionTests) ... test test_threading failed FAIL ====================================================================== FAIL: test_recursion_limit (test.test_threading.ThreadingExceptionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_threading.py", line 1290, in test_recursion_limit self.assertEqual(p.returncode, 0, "Unexpected error: " + stderr.decode()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: -11 != 0 : Unexpected error: ---------------------------------------------------------------------- Ran 1 test in 0.161s FAILED (failures=1) 2 tests failed again: test_exceptions test_threading == Tests result: FAILURE then FAILURE == 411 tests OK. 2 tests failed: test_exceptions test_threading 14 tests skipped: test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 2 re-run tests: test_exceptions test_threading Total duration: 6 min 19 sec Tests result: FAILURE then FAILURE Also here are the CFLAGS I used during the build: probook $ echo $CFLAGS -Wall -Wextra -g -O0 -std=c99 ---------- components: Tests messages: 404405 nosy: aritra1911 priority: normal severity: normal status: open title: Failing test_exceptions and test_threading type: crash versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45534> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com