MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_symlink_loop

Method _check_symlink_loop

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

Source from the content-addressed store, hash-verified

1929 self.assertEqual(r.resolve(strict=False), p / '3' / '4')
1930
1931 def _check_symlink_loop(self, *args):
1932 path = self.cls(*args)
1933 with self.assertRaises(OSError) as cm:
1934 path.resolve(strict=True)
1935 self.assertEqual(cm.exception.errno, errno.ELOOP)
1936
1937 @needs_posix
1938 @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