Skip to content

Commit

Permalink
bpo-46208: Passing ntpath and failing posixpath tests for normpath
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 2, 2022
1 parent a82baed commit d7e8da1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_ntpath.py
Expand Up @@ -235,6 +235,7 @@ def test_normpath(self):

tester("ntpath.normpath('\\\\.\\NUL')", r'\\.\NUL')
tester("ntpath.normpath('\\\\?\\D:/XY\\Z')", r'\\?\D:/XY\Z')
tester("ntpath.normpath('handbook/../../Tests/image.png')", r'..\Tests\image.png')

def test_realpath_curdir(self):
expected = ntpath.normpath(os.getcwd())
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_posixpath.py
Expand Up @@ -336,6 +336,7 @@ def test_expanduser_pwd(self):
("/../foo/../bar", "/bar"),
("/../../foo/../bar/./baz/boom/..", "/bar/baz"),
("/../../foo/../bar/./baz/boom/.", "/bar/baz/boom"),
("handbook/../../Tests/image.png", "../Tests/image.png")
]

def test_normpath(self):
Expand Down

0 comments on commit d7e8da1

Please sign in to comment.