diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-06-08 02:06:50 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-06-08 02:06:50 (GMT) |
| commit | 04fc999c057dffee882e8711ba28ec51ee092698 (patch) | |
| tree | 90e782dcec1523b7fb985076cbe88d5b664bec77 /Lib/packaging/tests/test_command_sdist.py | |
| parent | ef3062f7afec3a6f291050beaa6ef5d56f7047f3 (diff) | |
| download | cpython-04fc999c057dffee882e8711ba28ec51ee092698.zip cpython-04fc999c057dffee882e8711ba28ec51ee092698.tar.gz cpython-04fc999c057dffee882e8711ba28ec51ee092698.tar.bz2 | |
Packaging cleanup: remove use of script_name where obsolete
Diffstat (limited to 'Lib/packaging/tests/test_command_sdist.py')
| -rw-r--r-- | Lib/packaging/tests/test_command_sdist.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/packaging/tests/test_command_sdist.py b/Lib/packaging/tests/test_command_sdist.py index 7be349f..bcaa630 100644 --- a/Lib/packaging/tests/test_command_sdist.py +++ b/Lib/packaging/tests/test_command_sdist.py @@ -24,12 +24,6 @@ from packaging.util import find_executable from packaging.tests import support from shutil import get_archive_formats -SETUP_PY = """ -from packaging.core import setup -import somecode - -setup(name='fake') -""" MANIFEST = """\ # file GENERATED by packaging, do NOT edit @@ -57,8 +51,6 @@ class SDistTestCase(support.TempdirManager, restore_environ = ['HOME'] def setUp(self): - # PyPIRCCommandTestCase creates a temp dir already - # and put it in self.tmp_dir super(SDistTestCase, self).setUp() self.tmp_dir = self.mkdtemp() os.environ['HOME'] = self.tmp_dir @@ -69,7 +61,6 @@ class SDistTestCase(support.TempdirManager, # a package, and a README self.write_file((self.tmp_dir, 'README'), 'xxx') self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#') - self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY) os.chdir(self.tmp_dir) def tearDown(self): @@ -84,7 +75,6 @@ class SDistTestCase(support.TempdirManager, 'url': 'xxx', 'author': 'xxx', 'author_email': 'xxx'} dist = Distribution(metadata) - dist.script_name = 'setup.py' dist.packages = ['somecode'] dist.include_package_data = True cmd = sdist(dist) |
