diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 14:13:54 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 14:13:54 -0400 |
| commit | 04a306fa080e8a71f94ea5198b507c501c621cb6 (patch) | |
| tree | e8cf48586c26f719302136397697ddebdbf2e9af /setuptools/tests/test_manifest.py | |
| parent | 902edffbbab6203a9b3d765485159208fa6e68c3 (diff) | |
| download | external_python_setuptools-04a306fa080e8a71f94ea5198b507c501c621cb6.tar.gz external_python_setuptools-04a306fa080e8a71f94ea5198b507c501c621cb6.tar.bz2 external_python_setuptools-04a306fa080e8a71f94ea5198b507c501c621cb6.zip | |
Use makedirs with future compatibility throughout setuptools. Ref #1083.
Diffstat (limited to 'setuptools/tests/test_manifest.py')
| -rw-r--r-- | setuptools/tests/test_manifest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_manifest.py b/setuptools/tests/test_manifest.py index ab9b3469..65eec7d9 100644 --- a/setuptools/tests/test_manifest.py +++ b/setuptools/tests/test_manifest.py @@ -10,6 +10,7 @@ import itertools from distutils import log from distutils.errors import DistutilsTemplateError +import pkg_resources.py31compat from setuptools.command.egg_info import FileList, egg_info, translate_pattern from setuptools.dist import Distribution from setuptools.extern import six @@ -361,8 +362,7 @@ class TestFileListTest(TempDirTestCase): for file in files: file = os.path.join(self.temp_dir, file) dirname, basename = os.path.split(file) - if not os.path.exists(dirname): - os.makedirs(dirname) + pkg_resources.py31compat.makedirs(dirname, exist_ok=True) open(file, 'w').close() def test_process_template_line(self): |
