| 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('')) |
no outgoing calls