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

Function test_no_duplicate_constraints_pex_warnings

tests/test_pip.py:102–114  ·  view source on GitHub ↗
(
    create_pip,  # type: CreatePip
    version,  # type: PipVersionValue
    current_interpreter,  # type: PythonInterpreter
)

Source from the content-addressed store, hash-verified

100
101@applicable_pip_versions
102def test_no_duplicate_constraints_pex_warnings(
103 create_pip, # type: CreatePip
104 version, # type: PipVersionValue
105 current_interpreter, # type: PythonInterpreter
106):
107 # type: (...) -> None
108 with warnings.catch_warnings(record=True) as events:
109 create_pip(current_interpreter, version=version)
110
111 assert 0 == len([event for event in events if "constraints.txt" in str(event)]), (
112 "Expected no duplicate constraints warnings to be emitted when creating a Pip venv but "
113 "found\n{}".format("\n".join(map(str, events)))
114 )
115
116
117def package_index_configuration(

Callers

nothing calls this directly

Calls 2

create_pipFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected