summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-03 03:19:39 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-03 03:19:39 -0500
commit93847bd1cad5f5a058a18e06630ab0c22099677f (patch)
tree5683914bfc29827a80735097f5976eb6833452dd /setuptools/tests/test_easy_install.py
parent75501354959789632a7f133edc1fc90decf061c0 (diff)
downloadpython-setuptools-git-93847bd1cad5f5a058a18e06630ab0c22099677f.tar.gz
Extract variable for clearer assertion.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py7
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):