mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
[3.13] gh-124917: Allow keyword args to os.path.exists/lexists on Windows (GH-124918) (#125332)
(cherry picked from commit cc2938a189
)
This commit is contained in:
parent
488807a52a
commit
e646cc369e
4 changed files with 77 additions and 13 deletions
|
@ -156,6 +156,10 @@ class GenericTest:
|
|||
self.assertIs(self.pathmodule.lexists(filename + '\x00'), False)
|
||||
self.assertIs(self.pathmodule.lexists(bfilename + b'\x00'), False)
|
||||
|
||||
# Keyword arguments are accepted
|
||||
self.assertIs(self.pathmodule.exists(path=filename), True)
|
||||
self.assertIs(self.pathmodule.lexists(path=filename), True)
|
||||
|
||||
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
|
||||
@unittest.skipIf(is_emscripten, "Emscripten pipe fds have no stat")
|
||||
def test_exists_fd(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue