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 004f144 commit 0958182Copy full SHA for 0958182
tests/functional/test_install_script.py
@@ -91,8 +91,17 @@ def test_script_file_python_version(script: PipTestEnvironment) -> None:
91
expect_stderr=True,
92
expect_error=True,
93
)
94
+
95
+ if sys.platform == "win32":
96
+ # Special case: result.stderr contains an extra layer of backslash
97
+ # escaping, transform our path to match
98
+ script_path_str = str(script_path).replace("\\", "\\\\")
99
+ else:
100
+ script_path_str = str(script_path)
101
102
assert (
- f"ERROR: Script '{script_path}' requires a different Python" in result.stderr
103
+ f"ERROR: Script '{script_path_str}' requires a different Python"
104
+ in result.stderr
105
), (
106
"Script with incompatible requires-python did not fail as expected -- "
107
+ result.stderr
0 commit comments