MCPcopy Index your code
hub / github.com/pantsbuild/pants / test_is_not_python2

Function test_is_not_python2

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

Source from the content-addressed store, hash-verified

116 ],
117)
118def test_is_not_python2(constraints, compatibilities):
119 Subsystem.reset()
120 init_subsystem(
121 PythonSetup,
122 {
123 PythonSetup.options_scope: {
124 "interpreter_constraints": RankedValue(Rank.CONFIG, constraints)
125 }
126 },
127 )
128 assert not is_python2(compatibilities, PythonSetup.global_instance())

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