mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #8901 from pradyunsg/tweak-message-language
Tweak message when -r is not passed on a requirements.txt
This commit is contained in:
commit
af486d7511
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ def deduce_helpful_msg(req):
|
|||
"""
|
||||
msg = ""
|
||||
if os.path.exists(req):
|
||||
msg = " It does exist."
|
||||
msg = " The path does exist. "
|
||||
# Try to parse and check if it is a requirements file.
|
||||
try:
|
||||
with open(req, 'r') as fp:
|
||||
|
|
|
@ -572,7 +572,7 @@ class TestInstallRequirement(object):
|
|||
install_req_from_line(req_file_path)
|
||||
err_msg = e.value.args[0]
|
||||
assert "Invalid requirement" in err_msg
|
||||
assert "It looks like a path. It does exist." in err_msg
|
||||
assert "It looks like a path. The path does exist." in err_msg
|
||||
assert "appears to be a requirements file." in err_msg
|
||||
assert "If that is the case, use the '-r' flag to install" in err_msg
|
||||
|
||||
|
|
Loading…
Reference in a new issue