]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Oct 2021 12:11:38 +0000 (05:11 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 12:11:38 +0000 (05:11 -0700)
commitd55bf81c4ee2dcdd5dfa3b5a9905a0b32ca8d38b
treeebd3fbbfa0145571492bfc4d6956fadd0ac45531
parentee92205bb2b0c3693c5ed32d281d2d3bb40f6e4d
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)

Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals()
of test_exceptions if a directory name contains "a1" (like
"Python-3.11.0a1"): use a stricter regular expression.
(cherry picked from commit 4e605666b08b8f863cbbbdaa34bb06988e648d26)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_exceptions.py
Misc/NEWS.d/next/Tests/2021-10-07-13-11-45.bpo-45400.h3iT7V.rst [new file with mode: 0644]