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

Class Q

Lib/test/test_pathlib/test_join.py:403–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 self.assertRaises(ValueError, p.relative_to, P('a/..'), walk_up=True)
402 self.assertRaises(ValueError, p.relative_to, P('/a/..'), walk_up=True)
403 class Q(self.cls):
404 __eq__ = object.__eq__
405 __hash__ = object.__hash__
406 q = Q('a/b')
407 self.assertTrue(q.relative_to(q))
408 self.assertRaises(ValueError, q.relative_to, Q(''))

Callers 2

test_relative_toMethod · 0.70
test_is_relative_toMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_relative_toMethod · 0.56
test_is_relative_toMethod · 0.56