(
create_pip, # type: CreatePip
version, # type: PipVersionValue
current_interpreter, # type: PythonInterpreter
)
| 100 | |
| 101 | @applicable_pip_versions |
| 102 | def 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 | |
| 117 | def package_index_configuration( |
nothing calls this directly
no test coverage detected