diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 10:21:10 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 10:21:10 -0500 |
| commit | 1a0233012a7a800bf585f739c4121e2ee830436d (patch) | |
| tree | 329a51052e750f0178fa21541d04c9bee48ea97d /setuptools | |
| parent | de1af740bc79592faac63b3c0c8d50383b373dd4 (diff) | |
| download | python-setuptools-git-1a0233012a7a800bf585f739c4121e2ee830436d.tar.gz | |
Extract script variable for clarity
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 10 |
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): |
