summaryrefslogtreecommitdiff
path: root/sphinx/testing/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/testing/path.py')
-rw-r--r--sphinx/testing/path.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py
index 78c3cb7bc..143bfd994 100644
--- a/sphinx/testing/path.py
+++ b/sphinx/testing/path.py
@@ -202,12 +202,12 @@ class path(text_type):
"""
return os.path.lexists(self)
- def makedirs(self, mode=0o777):
- # type: (int) -> None
+ def makedirs(self, mode=0o777, exist_ok=False):
+ # type: (int, bool) -> None
"""
Recursively create directories.
"""
- os.makedirs(self, mode)
+ os.makedirs(self, mode, exist_ok=exist_ok) # type: ignore
def joinpath(self, *args):
# type: (Any) -> path