summaryrefslogtreecommitdiff
path: root/distutils/tests/test_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'distutils/tests/test_install.py')
-rw-r--r--distutils/tests/test_install.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py
index e01d9793..3aef9e43 100644
--- a/distutils/tests/test_install.py
+++ b/distutils/tests/test_install.py
@@ -187,9 +187,7 @@ class InstallTestCase(support.TempdirManager,
def test_record(self):
install_dir = self.mkdtemp()
- project_dir, dist = self.create_dist(name="testdist",
- version="0.1",
- py_modules=['hello'],
+ project_dir, dist = self.create_dist(py_modules=['hello'],
scripts=['sayhi'])
os.chdir(project_dir)
self.write_file('hello.py', "def main(): print('o hai')")
@@ -211,7 +209,7 @@ class InstallTestCase(support.TempdirManager,
found = [os.path.basename(line) for line in content.splitlines()]
expected = ['hello.py', 'hello.%s.pyc' % sys.implementation.cache_tag,
'sayhi',
- 'testdist-0.1-py%s.%s.egg-info' % sys.version_info[:2]]
+ 'UNKNOWN-0.0.0-py%s.%s.egg-info' % sys.version_info[:2]]
self.assertEqual(found, expected)
def test_record_extensions(self):
@@ -219,11 +217,8 @@ class InstallTestCase(support.TempdirManager,
if cmd is not None:
self.skipTest('The %r command is not found' % cmd)
install_dir = self.mkdtemp()
- project_dir, dist = self.create_dist(
- name="testdist",
- version="0.1",
- ext_modules=[Extension('xx', ['xxmodule.c'])],
- )
+ project_dir, dist = self.create_dist(ext_modules=[
+ Extension('xx', ['xxmodule.c'])])
os.chdir(project_dir)
support.copy_xxmodule_c(project_dir)
@@ -247,7 +242,7 @@ class InstallTestCase(support.TempdirManager,
found = [os.path.basename(line) for line in content.splitlines()]
expected = [_make_ext_name('xx'),
- 'testdist-0.1-py%s.%s.egg-info' % sys.version_info[:2]]
+ 'UNKNOWN-0.0.0-py%s.%s.egg-info' % sys.version_info[:2]]
self.assertEqual(found, expected)
def test_debug_mode(self):