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

Method _check_symlink_loop

Lib/test/test_pathlib/test_pathlib.py:1922–1926  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

1920 self.assertEqual(r.resolve(strict=False), p / '3' / '4')
1921
1922 def _check_symlink_loop(self, *args):
1923 path = self.cls(*args)
1924 with self.assertRaises(OSError) as cm:
1925 path.resolve(strict=True)
1926 self.assertEqual(cm.exception.errno, errno.ELOOP)
1927
1928 @needs_posix
1929 @needs_symlinks

Callers 1

test_resolve_loopMethod · 0.95

Calls 4

clsMethod · 0.45
assertRaisesMethod · 0.45
resolveMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected