summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setuptools/tests/test_egg_info.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 6d7ba345..a92779d5 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -33,10 +33,12 @@ class TestEggInfo:
self._create_project()
with contexts.tempdir(prefix='setuptools-test.') as temp_dir:
os.chmod(temp_dir, stat.S_IRWXU)
- paths = {}
- for dirname in ['home', 'lib', 'scripts', 'data', 'egg-base']:
- paths[dirname] = os.path.join(temp_dir, dirname)
- os.mkdir(paths[dirname])
+ subs = 'home', 'lib', 'scripts', 'data', 'egg-base'
+ paths = dict(
+ (dirname, os.path.join(temp_dir, dirname))
+ for dirname in subs
+ )
+ list(map(os.mkdir, paths.values()))
config = os.path.join(paths['home'], '.pydistutils.cfg')
with open(config, 'w') as f:
f.write('[egg_info]\n')