diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 17:49:21 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 17:49:21 -0500 |
commit | efba85513b5c11ddbddf785906b5b4e9b596771a (patch) | |
tree | d3a8a1c5c4cd0f5a0a265fa5814d01f6521ea11d /setuptools/tests/test_easy_install.py | |
parent | 3c78eb2348dff5d493d0cd5a34aef812db8385ef (diff) | |
download | external_python_setuptools-efba85513b5c11ddbddf785906b5b4e9b596771a.tar.gz external_python_setuptools-efba85513b5c11ddbddf785906b5b4e9b596771a.tar.bz2 external_python_setuptools-efba85513b5c11ddbddf785906b5b4e9b596771a.zip |
Extract method for handling non-ascii exe. Strip out excess whitespace from option handling.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index f919ae20..86870866 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -428,7 +428,7 @@ class TestScriptHeader: actual = ScriptWriter.get_script_header('#!/usr/local/bin/python') assert actual == expected - expected = '#!%s -x\n' % nt_quote_arg(os.path.normpath(sys.executable)) + expected = '#!%s -x\n' % nt_quote_arg(os.path.normpath(sys.executable)) actual = ScriptWriter.get_script_header('#!/usr/bin/python -x') assert actual == expected @@ -471,7 +471,7 @@ class TestScriptHeader: # with a warning emitted candidate = ScriptWriter.get_script_header('#!/usr/bin/python -x', executable=exe) - assert candidate == '#!%s -x\n' % exe + assert candidate == '#!%s -x\n' % exe output = locals()[expect_out] assert 'Unable to adapt shebang line' in output.getvalue() |