summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_bdist_egg.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_bdist_egg.py')
-rw-r--r--setuptools/tests/test_bdist_egg.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/setuptools/tests/test_bdist_egg.py b/setuptools/tests/test_bdist_egg.py
index ccfb2ea7..c77aa226 100644
--- a/setuptools/tests/test_bdist_egg.py
+++ b/setuptools/tests/test_bdist_egg.py
@@ -9,30 +9,33 @@ from setuptools.dist import Distribution
from . import contexts
+
SETUP_PY = """\
from setuptools import setup
setup(name='foo', py_modules=['hi'])
"""
+
@pytest.yield_fixture
def setup_context(tmpdir):
- with (tmpdir/'setup.py').open('w') as f:
+ with (tmpdir / 'setup.py').open('w') as f:
f.write(SETUP_PY)
- with (tmpdir/'hi.py').open('w') as f:
+ with (tmpdir / 'hi.py').open('w') as f:
f.write('1\n')
with tmpdir.as_cwd():
yield tmpdir
class Test:
+
def test_bdist_egg(self, setup_context, user_override):
dist = Distribution(dict(
script_name='setup.py',
script_args=['bdist_egg'],
name='foo',
py_modules=['hi']
- ))
+ ))
os.makedirs(os.path.join('build', 'src'))
with contexts.quiet():
dist.parse_command_line()