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

Class P

Lib/test/test_pathlib/test_pathlib.py:1294–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292
1293 def test_with_segments(self):
1294 class P(self.cls):
1295 def __init__(self, *pathsegments, session_id):
1296 super().__init__(*pathsegments)
1297 self.session_id = session_id
1298
1299 def with_segments(self, *pathsegments):
1300 return type(self)(*pathsegments, session_id=self.session_id)
1301 p = P(self.base, session_id=42)
1302 self.assertEqual(42, p.absolute().session_id)
1303 self.assertEqual(42, p.resolve().session_id)

Callers 15

test_joinMethod · 0.70
test_divMethod · 0.70
test_joinMethod · 0.70
test_divMethod · 0.70
test_partsMethod · 0.70
test_parentMethod · 0.70
test_parentsMethod · 0.70
test_anchorMethod · 0.70
test_nameMethod · 0.70
test_stemMethod · 0.70
test_suffixMethod · 0.70
test_suffixesMethod · 0.70

Calls

no outgoing calls

Tested by 15

test_joinMethod · 0.56
test_divMethod · 0.56
test_joinMethod · 0.56
test_divMethod · 0.56
test_partsMethod · 0.56
test_parentMethod · 0.56
test_parentsMethod · 0.56
test_anchorMethod · 0.56
test_nameMethod · 0.56
test_stemMethod · 0.56
test_suffixMethod · 0.56
test_suffixesMethod · 0.56