Skip to content

Commit 68c6533

Browse files
committed
Fix ntpath tests (pass 1)
1 parent 2d30bb7 commit 68c6533

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_ntpath.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,8 @@ def test_realpath_basic(self):
269269
self.assertPathEqual(ntpath.realpath(os.fsencode(ABSTFN + "1")),
270270
os.fsencode(ABSTFN))
271271

272-
@unittest.skipUnless(hasattr(os, "symlink"),
273-
"Missing symlink implementation")
274-
@skip_if_ABSTFN_contains_backslash
272+
@os_helper.skip_unless_symlink
273+
@unittest.skipUnless(HAVE_GETFINALPATHNAME, 'need _getfinalpathname')
275274
def test_realpath_strict(self):
276275
# Bug #43757: raise FileNotFoundError in strict mode if we encounter
277276
# a path that does not exist.

0 commit comments

Comments
 (0)