mirror of
https://github.com/python/cpython.git
synced 2025-08-15 06:10:47 +00:00
gh-118507 : Refactor ntpath native functions (gh-119381)
This refactoring will make future backports easier without changing behaviours, apart from correcting a bug when passing a pipe to `ntpath.isfile`.
This commit is contained in:
parent
8c96850161
commit
874a4f7d08
5 changed files with 372 additions and 416 deletions
|
@ -135,6 +135,10 @@ class GenericTest:
|
|||
self.assertIs(self.pathmodule.exists(filename), False)
|
||||
self.assertIs(self.pathmodule.exists(bfilename), False)
|
||||
|
||||
if self.pathmodule is not genericpath:
|
||||
self.assertIs(self.pathmodule.lexists(filename), False)
|
||||
self.assertIs(self.pathmodule.lexists(bfilename), False)
|
||||
|
||||
create_file(filename)
|
||||
|
||||
self.assertIs(self.pathmodule.exists(filename), True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue