Skip to content

bpo-2604: Make DocTestCase reset globs in teardown #31932

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 3 commits into from
Mar 22, 2022

Conversation

DanielNoord
Copy link
Contributor

@DanielNoord DanielNoord commented Mar 16, 2022

Targets bpo-2604 and bpo-9736.

Combination of both patches as suggested by Irit Katriel on bpo-2604.

I didn't include a news entry as I didn't think it was necessary for test changes. Let me know if I should add one!

https://bugs.python.org/issue2604

Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
@JelleZijlstra
Copy link
Member

Thanks! I think this does need a news entry because doctest is a public API and this fixes a user-visible bug.

@DanielNoord
Copy link
Contributor Author

@JelleZijlstra Added 😄

Not sure if that also means that this needs to be back ported, but I'll leave that decision up to you.

@JelleZijlstra JelleZijlstra self-requested a review March 17, 2022 06:22
@JelleZijlstra JelleZijlstra added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes labels Mar 19, 2022
@JelleZijlstra JelleZijlstra self-assigned this Mar 19, 2022
@JelleZijlstra JelleZijlstra merged commit 7ba7eae into python:main Mar 22, 2022
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry @DanielNoord and @JelleZijlstra, I had trouble checking out the 3.10 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 7ba7eae50803b11766421cb8aae1780058a57e2b 3.10

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Mar 22, 2022
@bedevere-bot
Copy link

GH-32057 is a backport of this pull request to the 3.9 branch.

@JelleZijlstra JelleZijlstra added needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes labels Mar 22, 2022
@miss-islington
Copy link
Contributor

Thanks @DanielNoord for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Mar 22, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 22, 2022
…31932)

Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit 7ba7eae)

Co-authored-by: Daniël van Noord <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 22, 2022
…31932)

Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit 7ba7eae)

Co-authored-by: Daniël van Noord <[email protected]>
miss-islington added a commit that referenced this pull request Mar 22, 2022
Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit 7ba7eae)

Co-authored-by: Daniël van Noord <[email protected]>
miss-islington added a commit that referenced this pull request Mar 22, 2022
Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit 7ba7eae)

Co-authored-by: Daniël van Noord <[email protected]>
@DanielNoord DanielNoord deleted the fix-issue-2604 branch March 23, 2022 07:29
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
…31932)

Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit 7ba7eae)

Co-authored-by: Daniël van Noord <[email protected]>
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.

5 participants