Skip to content

Commit

Permalink
Update Logged Message
Browse files Browse the repository at this point in the history
  • Loading branch information
anudit committed Feb 29, 2020
1 parent 442f321 commit 773adc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pip/_internal/index/package_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def _check_link_requires_python(
version = '.'.join(map(str, version_info))
if not ignore_requires_python:
logger.info(
'Python version mismatch. Required %r, Current %s %s',
'Package does not meet the Python version requirement. \
Required version %r, Current version %s %s',
link.requires_python, version, link,
)
return False
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def check_caplog(caplog, expected_level, expected_message):
@pytest.mark.parametrize('ignore_requires_python, expected', [
(None, (
False, 'INFO',
"Python version mismatch. Required '== 3.6.4', Current 3.6.5 "
"Package does not meet the Python version requirement. \
Required version '== 3.6.4', Current version 3.6.5 "
"https://example.com"
)),
(True, (
Expand Down

0 comments on commit 773adc2

Please sign in to comment.