Commit 1a023301 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract script variable for clarity

parent de1af740
...@@ -301,16 +301,18 @@ class TestSetupRequires(unittest.TestCase): ...@@ -301,16 +301,18 @@ class TestSetupRequires(unittest.TestCase):
""" """
with tempdir_context() as dir: with tempdir_context() as dir:
dist_path = os.path.join(dir, 'setuptools-test-fetcher-1.0.tar.gz') dist_path = os.path.join(dir, 'setuptools-test-fetcher-1.0.tar.gz')
make_trivial_sdist( script = DALS("""
dist_path,
DALS("""
import setuptools import setuptools
setuptools.setup( setuptools.setup(
name="setuptools-test-fetcher", name="setuptools-test-fetcher",
version="1.0", version="1.0",
setup_requires = ['does-not-exist'], setup_requires = ['does-not-exist'],
) )
""")) """)
make_trivial_sdist(
dist_path,
script,
)
yield dist_path yield dist_path
def test_setup_requires_overrides_version_conflict(self): def test_setup_requires_overrides_version_conflict(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment