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:
Pradyun Gedam 2020-09-23 20:47:12 +05:30 committed by GitHub
commit af486d7511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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