diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-03 03:19:39 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-03 03:19:39 -0500 |
| commit | 93847bd1cad5f5a058a18e06630ab0c22099677f (patch) | |
| tree | 5683914bfc29827a80735097f5976eb6833452dd | |
| parent | 75501354959789632a7f133edc1fc90decf061c0 (diff) | |
| download | python-setuptools-git-93847bd1cad5f5a058a18e06630ab0c22099677f.tar.gz | |
Extract variable for clearer assertion.
| -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): |
