aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-30 10:21:10 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-30 10:21:10 -0500
commit1a0233012a7a800bf585f739c4121e2ee830436d (patch)
tree329a51052e750f0178fa21541d04c9bee48ea97d /setuptools/tests/test_easy_install.py
parentde1af740bc79592faac63b3c0c8d50383b373dd4 (diff)
downloadexternal_python_setuptools-1a0233012a7a800bf585f739c4121e2ee830436d.tar.gz
external_python_setuptools-1a0233012a7a800bf585f739c4121e2ee830436d.tar.bz2
external_python_setuptools-1a0233012a7a800bf585f739c4121e2ee830436d.zip
Extract script variable for clarity
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index d915f3c5..05063331 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -301,16 +301,18 @@ class TestSetupRequires(unittest.TestCase):
"""
with tempdir_context() as dir:
dist_path = os.path.join(dir, 'setuptools-test-fetcher-1.0.tar.gz')
- make_trivial_sdist(
- dist_path,
- DALS("""
+ script = DALS("""
import setuptools
setuptools.setup(
name="setuptools-test-fetcher",
version="1.0",
setup_requires = ['does-not-exist'],
)
- """))
+ """)
+ make_trivial_sdist(
+ dist_path,
+ script,
+ )
yield dist_path
def test_setup_requires_overrides_version_conflict(self):