We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d534187 commit 382f9b2Copy full SHA for 382f9b2
tests/functional/test_install_script.py
@@ -90,17 +90,7 @@ def test_script_file_python_version(script: PipTestEnvironment) -> None:
90
expect_error=True,
91
)
92
93
- if sys.platform == "win32":
94
- # Special case: result.stderr contains an extra layer of backslash
95
- # escaping, transform our path to match
96
- script_path_str = str(script_path).replace("\\", "\\\\")
97
- else:
98
- script_path_str = str(script_path)
99
-
100
- assert (
101
- f"ERROR: Script '{script_path_str}' requires a different Python"
102
- in result.stderr
103
- ), (
+ assert "requires a different Python" in result.stderr, (
104
"Script with incompatible requires-python did not fail as expected -- "
105
+ result.stderr
106
0 commit comments