diff options
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index fac13104..befbd2fa 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -453,11 +453,8 @@ class TestScriptHeader: def test_get_script_header_jython_workaround(self): # A mock sys.executable that uses a shebang line (this file) exe = os.path.normpath(os.path.splitext(__file__)[0] + '.py') - assert ( - get_script_header('#!/usr/local/bin/python', executable=exe) - == - '#!/usr/bin/env %s\n' % exe - ) + header = get_script_header('#!/usr/local/bin/python', executable=exe) + assert header == '#!/usr/bin/env %s\n' % exe with contexts.quiet() as (stdout, stderr): |
