diff options
author | Barry Warsaw <barry@python.org> | 2014-08-05 15:28:12 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2014-08-05 15:28:12 (GMT) |
commit | 7c549c4e6445b25c95491571af8dfa6532570866 (patch) | |
tree | d5f3bf11bea329a38e91ad4bddc66adef5aeae4f /Lib/test/test_platform.py | |
parent | 17fd1e1013e27032a8a14cc4a1e0521ef75d3699 (diff) | |
download | cpython-7c549c4e6445b25c95491571af8dfa6532570866.zip cpython-7c549c4e6445b25c95491571af8dfa6532570866.tar.gz cpython-7c549c4e6445b25c95491571af8dfa6532570866.tar.bz2 |
- Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
`mkdir -p` and `os.makedirs()` functionality. When true, ignore
FileExistsErrors. Patch by Berker Peksag.
(With minor cleanups, additional tests, doc tweaks, etc. by Barry)
Also:
* Remove some unused imports in test_pathlib.py reported by pyflakes.
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r-- | Lib/test/test_platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index b3de43b..ededbdb 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -307,7 +307,7 @@ class PlatformTest(unittest.TestCase): with mock.patch('platform._UNIXCONFDIR', tempdir): distname, version, distid = platform.linux_distribution() - self.assertEqual(distname, 'Fedora') + self.assertEqual(distname, 'Fedora') self.assertEqual(version, '19') self.assertEqual(distid, 'Schr\xf6dinger\u2019s Cat') |