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

Function test_executable_detection

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

Source from the content-addressed store, hash-verified

63 ],
64)
65def test_executable_detection(text, version):
66 # GIVEN / WHEN
67 result = BINARY_REGEXP.match(text)
68
69 # THEN
70 assert result
71
72 major, minor = version
73 assert int(result.group("major")) == major
74 assert int(result.group("minor")) == minor
75
76
77@pytest.mark.parametrize("text", ["cat3.8", "python3", "python2"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected