MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_modulecol_roundtrip

Function test_modulecol_roundtrip

testing/python/collect.py:1107–1111  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1105
1106
1107def test_modulecol_roundtrip(pytester: Pytester) -> None:
1108 modcol = pytester.getmodulecol("pass", withinit=False)
1109 trail = modcol.nodeid
1110 newcol = modcol.session.perform_collect([trail], genitems=0)[0]
1111 assert modcol.name == newcol.name
1112
1113
1114class TestTracebackCutting:

Callers

nothing calls this directly

Calls 2

perform_collectMethod · 0.80
getmodulecolMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…