Visitar URL original
bpo-45400: Fix suggestion test of test_exceptions by vstinner · Pull Request #28783 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223181456/https://github.com/python/cpython/pull/28783
Skip to content
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

bpo-45400: Fix suggestion test of test_exceptions #28783

Merged
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
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
12 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Oct 7, 2021

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

@bedevere-bot
Copy link

bedevere-bot commented Oct 7, 2021

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 <vstinner@python.org>
@vstinner vstinner deleted the test_exceptions branch Oct 7, 2021
@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 <vstinner@python.org>
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.

None yet

5 participants