MCPcopy Create free account
hub / github.com/ipython/ipython / test_no_link

Method test_no_link

IPython/utils/tests/test_path.py:468–477  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

466
467 @skip_win32
468 def test_no_link(self):
469 real_link = os.link
470 try:
471 del os.link
472 dst = self.dst("target")
473 path.link_or_copy(self.src, dst)
474 self.assert_content_equal(self.src, dst)
475 self.assert_inode_not_equal(self.src, dst)
476 finally:
477 os.link = real_link
478
479 @skip_if_not_win32
480 def test_windows(self):

Callers

nothing calls this directly

Calls 3

dstMethod · 0.95
assert_content_equalMethod · 0.95

Tested by

no test coverage detected