MCPcopy
hub / github.com/pantsbuild/pants / test_is_python2

Function test_is_python2

src/python/pants/backend/python/rules/util_test.py:94–104  ·  view source on GitHub ↗
(constraints, compatibilities)

Source from the content-addressed store, hash-verified

92 ],
93)
94def test_is_python2(constraints, compatibilities):
95 Subsystem.reset()
96 init_subsystem(
97 PythonSetup,
98 {
99 PythonSetup.options_scope: {
100 "interpreter_constraints": RankedValue(Rank.CONFIG, constraints)
101 }
102 },
103 )
104 assert is_python2(compatibilities, PythonSetup.global_instance())
105
106
107@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 5

init_subsystemFunction · 0.90
RankedValueClass · 0.90
is_python2Function · 0.90
global_instanceMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected