MCPcopy Create free account
hub / github.com/bloomberg/pystack / test_libpython_detection

Function test_libpython_detection

tests/unit/test_process.py:32–41  ·  view source on GitHub ↗
(text, version)

Source from the content-addressed store, hash-verified

30 ],
31)
32def test_libpython_detection(text, version):
33 # GIVEN / WHEN
34 result = LIBPYTHON_REGEXP.match(text)
35
36 # THEN
37 assert result
38
39 major, minor = version
40 assert int(result.group("major")) == major
41 assert int(result.group("minor")) == minor
42
43
44@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected