Question about pip in test_new_resolver.py

In the test file: pip/tests/functional/test_new_resolver.py::test_new_resolver_requires_python (line 349)

I am now studying about pip code. But I have no idea what this test is used for.
For the test “Something impossible to satisfy”, is it ture that we still got the original answer?

test_new_resolver_requires_python ensures the resolver checks the Requires-Python Core Metadata field, and reject a version if its Requires-Python is not compatible with the currently-used Python version.

The “something impossible to satisfy” fixture provides Requires-Python: <2 i.e. requires Python 1.x or earlier, which is impossible to satisfy for any environments running the test (since pip itself requires 2.7+), to generate a package version that must be rejected by the resolver.


p.s. For covinience, the relevent code is

2 Likes