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 773adc2 commit 51e3484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/index/package_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def _check_link_requires_python(
version = '.'.join(map(str, version_info))
if not ignore_requires_python:
logger.info(
'Package does not meet the Python version requirement. \
Required version %r, Current version %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
4 changes: 2 additions & 2 deletions tests/unit/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def check_caplog(caplog, expected_level, expected_message):
@pytest.mark.parametrize('ignore_requires_python, expected', [
(None, (
False, 'INFO',
"Package does not meet the Python version requirement. \
Required version '== 3.6.4', Current version 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 51e3484

Please sign in to comment.