Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-130655: Add tests forgettext.find()
#130691
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Also request@serhiy-storchaka |
Thanks! Could you also add tests that cover the 4 missing lines? |
First line: I would consider fine as it just breaks on the first run Second line: not sure why it’s yellow third line: Is it necessary? fourth line: returns before reaching c I don’t see any reason to run a test with just c |
It's important to test these if we're going to touch the behaviour of
The loop always breaks which means you never test the case where
The condition was always |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Just a few comments/improvements :)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Can you double-check that we have full coverage? Otherwise I think it's good :) |
Looks pretty green to me :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Just one more thing, I'd also test thatLC_ALL
,LC_MESSAGES
andLANG
are read as well in addition toLANGUAGE
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks! Looks good :)
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
bedevere-bot commentedMar 18, 2025
🤖 New build scheduled with the buildbot fleet by@encukou for commit9afb57d 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130691%2Fmerge If you want to schedule another build, you need to add the🔨 test-with-buildbots label again. |
3118693
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Do we want to backport them or not by the way? |
I think so, similar test PRs were also previously backported. |
Thanks@StanFromIreland for the PR, and@encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Thanks@StanFromIreland for the PR, and@encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
(cherry picked from commit3118693)Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
(cherry picked from commit3118693)Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
GH-132083 is a backport of this pull request to the3.12 branch. |
GH-132084 is a backport of this pull request to the3.13 branch. |
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
(There was no coverage before)
gettext
#130655