MCPcopy Index your code
hub / github.com/python/cpython / test_hardlink_to_unsupported

Method test_hardlink_to_unsupported

Lib/test/test_pathlib/test_pathlib.py:2287–2293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2285
2286 @unittest.skipIf(hasattr(os, "link"), "os.link() is present")
2287 def test_hardlink_to_unsupported(self):
2288 P = self.cls(self.base)
2289 p = P / 'fileA'
2290 # linking to another path.
2291 q = P / 'dirA' / 'fileAA'
2292 with self.assertRaises(pathlib.UnsupportedOperation):
2293 q.hardlink_to(p)
2294
2295 def test_rename(self):
2296 P = self.cls(self.base)

Callers

nothing calls this directly

Calls 3

hardlink_toMethod · 0.80
clsMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected