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 hroncok
Recipients hroncok, pablogsal, vstinner
Date 2021-10-07.09:47:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633600047.69.0.0952962991188.issue45400@roundup.psfhosted.org>
In-reply-to
Content
The test_name_error_suggestions_do_not_trigger_for_too_many_locals test fails with the to-be-released 3.11.0a1:

======================================================================
FAIL: test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/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 "/builddir/build/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 "/builddir/build/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.016s


I believe it is the version string that triggers this failure.
History
Date User Action Args
2021-10-07 09:47:27hroncoksetrecipients: + hroncok, vstinner, pablogsal
2021-10-07 09:47:27hroncoksetmessageid: <1633600047.69.0.0952962991188.issue45400@roundup.psfhosted.org>
2021-10-07 09:47:27hroncoklinkissue45400 messages
2021-10-07 09:47:27hroncokcreate