diff options
| -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): |
