MCPcopy
hub / github.com/pex-tool/pex / assert_unknown_marker

Function assert_unknown_marker

tests/test_pep_508.py:26–35  ·  view source on GitHub ↗
(
    env,  # type: Dict[str, str]
    expression,  # type: str
)

Source from the content-addressed store, hash-verified

24
25
26def assert_unknown_marker(
27 env, # type: Dict[str, str]
28 expression, # type: str
29):
30 # type: (...) -> None
31
32 # N.B: packaging 23.1 raises `KeyError` and the other vendored versions raise
33 # `markers.UndefinedEnvironmentName`.
34 with pytest.raises((markers.UndefinedEnvironmentName, KeyError)):
35 evaluate_marker(expression, env)
36
37
38@pytest.mark.skipif(

Calls 1

evaluate_markerFunction · 0.85

Tested by

no test coverage detected