Skip to content

Commit dfbe41e

Browse files
authored
Merge pull request #12964 from freakboy3742/file-url-fix
Correct usage of invalid file URL in test
2 parents 102d818 + 5eaccb8 commit dfbe41e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

news/12964.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A valid, but non-existent URL used in a test case was corrected to be a valid URL.

tests/functional/test_bad_url.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
def test_filenotfound_error_message(script: Any) -> None:
88
# Test the error message returned when using a bad 'file:' URL.
99
# make pip to fail and get an error message
10-
# by running "pip install -r file:nonexistent_file"
11-
proc = script.pip("install", "-r", "file:unexistent_file", expect_error=True)
10+
# by running "pip install -r file:///nonexistent_file"
11+
proc = script.pip("install", "-r", "file:///unexistent_file", expect_error=True)
1212
assert proc.returncode == 1
1313
expect = (
1414
"ERROR: 404 Client Error: FileNotFoundError for url: file:///unexistent_file"

0 commit comments

Comments
 (0)