aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_dist_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_dist_info.py')
-rw-r--r--setuptools/tests/test_dist_info.py22
1 files changed, 9 insertions, 13 deletions
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py
index 92ef6e8c..122d94a0 100644
--- a/setuptools/tests/test_dist_info.py
+++ b/setuptools/tests/test_dist_info.py
@@ -29,25 +29,21 @@ class TestDistInfo:
versioned = tmpdir / dist_info_name
versioned.mkdir()
filename = versioned / 'METADATA'
- filename.write_text(
- self.metadata_template.format(
- name='VersionedDistribution',
- version='',
- ).replace('\n\n', '\n'),
- encoding='utf-8',
- )
+ content = self.metadata_template.format(
+ name='VersionedDistribution',
+ version='',
+ ).replace('\n\n', '\n')
+ filename.write_text(content, encoding='utf-8')
dist_info_name = 'UnversionedDistribution.dist-info'
unversioned = tmpdir / dist_info_name
unversioned.mkdir()
filename = unversioned / 'METADATA'
- filename.write_text(
- self.metadata_template.format(
- name='UnversionedDistribution',
- version='Version: 0.3',
- ),
- encoding='utf-8',
+ content = self.metadata_template.format(
+ name='UnversionedDistribution',
+ version='Version: 0.3',
)
+ filename.write_text(content, encoding='utf-8')
return str(tmpdir)