Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c283d4a commit cd9c542Copy full SHA for cd9c542
Lib/test/test_ntpath.py
@@ -376,7 +376,9 @@ def test_realpath_basic(self):
376
377
# gh-88013: call ntpath.realpath with binary drive name may raise a
378
# TypeError. The drive should not exist to reproduce the bug.
379
- self.assertEqual(ntpath.realpath(b"n:/"), b"n:\\")
+ drives = {f"{chr(x)}:\\" for x in range(65, 91)} - set(os.listdrives())
380
+ d = drives.pop().encode()
381
+ self.assertEqual(ntpath.realpath(d), d)
382
383
@os_helper.skip_unless_symlink
384
@unittest.skipUnless(HAVE_GETFINALPATHNAME, 'need _getfinalpathname')
0 commit comments