(constraints, compatibilities)
| 92 | ], |
| 93 | ) |
| 94 | def 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( |
nothing calls this directly
no test coverage detected