Skip to content

bpo-45400: Fix suggestion test of test_exceptions #28783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2021
Merged

bpo-45400: Fix suggestion test of test_exceptions #28783

merged 1 commit into from
Oct 7, 2021

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 7, 2021

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.

https://bugs.python.org/issue45400

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.
@vstinner vstinner added the needs backport to 3.10 only security fixes label Oct 7, 2021
@bedevere-bot bedevere-bot added the tests Tests in the Lib/test dir label Oct 7, 2021
@vstinner
Copy link
Member Author

vstinner commented Oct 7, 2021

@pablogsal @isidentical: Would you mind to review this fix? I'm not sure which pattern must not be in the output.

@vstinner vstinner merged commit 4e60566 into python:main Oct 7, 2021
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-28787 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 7, 2021
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 4e60566)

Co-authored-by: Victor Stinner <[email protected]>
@vstinner vstinner deleted the test_exceptions branch October 7, 2021 11:48
@vstinner
Copy link
Member Author

vstinner commented Oct 7, 2021

pablogsal approved these changes 8 minutes ago

Thanks for the review!

miss-islington added a commit that referenced this pull request Oct 7, 2021
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 4e60566)

Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants