diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 09:26:59 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 09:26:59 -0500 |
| commit | dbab8ae868d8b15d7082ee19bbd577140dea9652 (patch) | |
| tree | 3ced15583a8ed6cc74f94042ffadf36516e1a197 /setuptools | |
| parent | 80561b7f0bb7cf8488e342ee853ac9aff107b021 (diff) | |
| download | python-setuptools-git-dbab8ae868d8b15d7082ee19bbd577140dea9652.tar.gz | |
Indent script for clarity
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 530f89f3..bb6b7fc5 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -35,24 +35,24 @@ class FakeDist(object): def as_requirement(self): return 'spec' -WANTED = """\ -#!%s -# EASY-INSTALL-ENTRY-SCRIPT: 'spec','console_scripts','name' -__requires__ = 'spec' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('spec', 'console_scripts', 'name')() - ) -""" % nt_quote_arg(fix_jython_executable(sys.executable, "")) - -SETUP_PY = """\ -from setuptools import setup - -setup(name='foo') -""" +WANTED = textwrap.dedent(""" + #!%s + # EASY-INSTALL-ENTRY-SCRIPT: 'spec','console_scripts','name' + __requires__ = 'spec' + import sys + from pkg_resources import load_entry_point + + if __name__ == '__main__': + sys.exit( + load_entry_point('spec', 'console_scripts', 'name')() + ) + """).lstrip() % nt_quote_arg(fix_jython_executable(sys.executable, "")) + +SETUP_PY = textwrap.dedent(""" + from setuptools import setup + + setup(name='foo') + """).lstrip() class TestEasyInstallTest(unittest.TestCase): |
