Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-96192: fix os.ismount() to use a path that is str or bytes#96194
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
Co-authored-by: Eryk Sun <eryksun@gmail.com>Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
bedevere-bot commentedAug 23, 2022
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
ghost commentedAug 23, 2022 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
Hi@calestyo , Would you like to add a test for this? |
@orsenthil Well I could at least try, but two issues here:
but one cannot yield |
Without this patch, I would expect this
to fail or behavior differently than with this patch. What might I be missing? |
That I don't understand… as far as I understand it, it should have worked previously with both |
Misc/NEWS.d/next/Library/2022-08-23-03-13-18.gh-issue-96192.TJywOF.rst OutdatedShow resolvedHide resolved
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.
Could you add a test that passes a bytes path-like toismount()?
bedevere-bot commentedOct 7, 2022
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 And if you don't make the requested changes, you will be put in the comfy chair! |
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
@orsenthil@JelleZijlstra … I've added a test using |
I have made the requested changes; please review again |
bedevere-bot commentedNov 13, 2022
Thanks for making the requested changes! @JelleZijlstra: please review the changes made to this pull request. |
The tests are failing. |
Uagh... seems
but it doesn't really, but only such that use strings. Isn't that yet another bug? Anyway... I don't know how to do a proper test then. Is there any other PathLike object type in the library? The only I'd know is Any ideas? |
Oh and is a test here really worth it? The fix is trivial, should someone ever remove it, the check could also just be removed by accident as well. As I've already saidabove, to which noone replied,... it would IMO only make sense, ifall these functions could be tested for whether they accept the right types, at once. |
The problem in your test is that
You can use
Yes, every bugfix needs an associated test. |
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
thx... still fails on one platform though... no idea why |
Looks spurious, I retried it. |
Thanks@calestyo for the PR, and@JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
bedevere-bot commentedNov 14, 2022
GH-99455 is a backport of this pull request to the3.11 branch. |
…ythonGH-96194)(cherry picked from commit367f552)Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org>Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>Co-authored-by: Eryk Sun <eryksun@gmail.com>Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
bedevere-bot commentedNov 14, 2022
GH-99456 is a backport of this pull request to the3.10 branch. |
…ythonGH-96194)(cherry picked from commit367f552)Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org>Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>Co-authored-by: Eryk Sun <eryksun@gmail.com>Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit367f552)Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org>Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>Co-authored-by: Eryk Sun <eryksun@gmail.com>Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…H-96194) (#99456)gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194)(cherry picked from commit367f552)Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org>Co-authored-by: Eryk Sun <eryksun@gmail.com>Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Eryk Suneryksun@gmail.com
Signed-off-by: Christoph Anton Mitterermail@christoph.anton.mitterer.name