aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_dist_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-01 16:35:34 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-01 16:35:34 -0500
commit3d4e8cfb4339e641f65def5185bcc784f6190df5 (patch)
tree2391bc527e20ce9ab965e0decbbfe38cbe6fdf5e /setuptools/tests/test_dist_info.py
parent600992dff64b3aefe0061b9861a48cf3558adcdc (diff)
downloadexternal_python_setuptools-3d4e8cfb4339e641f65def5185bcc784f6190df5.tar.gz
external_python_setuptools-3d4e8cfb4339e641f65def5185bcc784f6190df5.tar.bz2
external_python_setuptools-3d4e8cfb4339e641f65def5185bcc784f6190df5.zip
Extract variables to nicen indentation.
Diffstat (limited to 'setuptools/tests/test_dist_info.py')
-rw-r--r--setuptools/tests/test_dist_info.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py
index edf3ffff..ed3f1886 100644
--- a/setuptools/tests/test_dist_info.py
+++ b/setuptools/tests/test_dist_info.py
@@ -49,8 +49,8 @@ class TestDistInfo:
def setup_method(self, method):
self.tmpdir = tempfile.mkdtemp()
- versioned = os.path.join(self.tmpdir,
- 'VersionedDistribution-2.718.dist-info')
+ dist_info_name = 'VersionedDistribution-2.718.dist-info'
+ versioned = os.path.join(self.tmpdir, dist_info_name)
os.mkdir(versioned)
with open(os.path.join(versioned, 'METADATA'), 'w+') as metadata_file:
metadata = self.metadata_template.format(
@@ -58,8 +58,8 @@ class TestDistInfo:
version='',
).replace('\n\n', '\n')
metadata_file.write(metadata)
- unversioned = os.path.join(self.tmpdir,
- 'UnversionedDistribution.dist-info')
+ dist_info_name = 'UnversionedDistribution.dist-info'
+ unversioned = os.path.join(self.tmpdir, dist_info_name)
os.mkdir(unversioned)
with open(os.path.join(unversioned, 'METADATA'), 'w+') as metadata_file:
metadata = self.metadata_template.format(