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-44600: Pattern-matching: line-numbers incorrectly traced on default case #27346

Merged
merged 22 commits into from Jul 25, 2021

Conversation

chaburkland
Copy link
Contributor

@chaburkland chaburkland commented Jul 25, 2021

The test cases added directly mirror the examples raised by @nedbat in the originally raised issue.

https://bugs.python.org/issue44600

Copy link
Member

@brandtbucher brandtbucher left a comment

Thanks @chaburkland! I've left some comments, but in general I really like your test framework here.

This PR should also have a NEWS entry. Just something simple, like:

Fix incorrect line numbers while tracing some failed patterns in :ref:`match <match>` statements. Patch by Charles Burkland.

Lib/test/test_patma.py Outdated Show resolved Hide resolved
Lib/test/test_patma.py Outdated Show resolved Hide resolved
Lib/test/test_patma.py Outdated Show resolved Hide resolved
Lib/test/test_patma.py Outdated Show resolved Hide resolved
Lib/test/test_patma.py Outdated Show resolved Hide resolved
Lib/test/test_patma.py Show resolved Hide resolved
@bedevere-bot
Copy link

bedevere-bot commented Jul 25, 2021

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be put in the comfy chair!

blurb-it bot and others added 7 commits Jul 25, 2021
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
@chaburkland
Copy link
Contributor Author

chaburkland commented Jul 25, 2021

I have made the requested changes; please review again

@bedevere-bot
Copy link

bedevere-bot commented Jul 25, 2021

Thanks for making the requested changes!

@brandtbucher: please review the changes made to this pull request.

Copy link
Member

@brandtbucher brandtbucher left a comment

Thanks!

@brandtbucher brandtbucher merged commit 4214f47 into python:main Jul 25, 2021
13 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Jul 25, 2021

Thanks @chaburkland for the PR, and @brandtbucher for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

@bedevere-bot
Copy link

bedevere-bot commented Jul 25, 2021

GH-27356 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 Jul 25, 2021
…GH-27346)

(cherry picked from commit 4214f47)

Co-authored-by: Charles Burkland <charles.aburkland@gmail.com>
miss-islington added a commit that referenced this pull request Jul 26, 2021
…H-27346) (GH-27356)

(cherry picked from commit 4214f47)


Co-authored-by: Charles Burkland <charles.aburkland@gmail.com>

Automerge-Triggered-By: GH:brandtbucher
@chaburkland chaburkland deleted the 44600_matching_trace_bugfix branch Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants