Make Python path warning say what it means to say (#69669)

This commit is contained in:
Karl Fogel 2020-05-29 12:15:11 -05:00 committed by GitHub
parent c3dff34c15
commit 225ae65b0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ def discover_interpreter(action, interpreter_name, discovery_mode, task_vars):
if not is_silent:
action._discovery_warnings \
.append(u"Platform {0} on host {1} is using the discovered Python interpreter at {2}, but future installation of "
u"another Python interpreter could change this. See {3} "
u"another Python interpreter could change the meaning of that path. See {3} "
u"for more information."
.format(platform_type, host, found_interpreters[0],
get_versioned_doclink('reference_appendices/interpreter_discovery.html')))

View file

@ -70,7 +70,7 @@ def test_discovery_interpreter_non_linux():
assert len(mock_action.method_calls) == 2
assert mock_action.method_calls[1][0] == '_discovery_warnings.append'
assert u'Platform darwin on host host-fóöbär is using the discovered Python interpreter at /usr/bin/python, ' \
u'but future installation of another Python interpreter could change this' \
u'but future installation of another Python interpreter could change the meaning of that path' \
in mock_action.method_calls[1][1][0]