We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e746c commit 5904204Copy full SHA for 5904204
distutils/dir_util.py
@@ -32,8 +32,9 @@ def wrap(self, func):
32
def wrapper(path, *args, **kwargs):
33
if path.absolute() in self:
34
return
35
+ result = func(path, *args, **kwargs)
36
self.add(path.absolute())
- return func(path, *args, **kwargs)
37
+ return result
38
39
return wrapper
40
distutils/tests/test_dir_util.py
@@ -112,7 +112,6 @@ def test_copy_tree_exception_in_listdir(self):
112
src = self.tempdirs[-1]
113
dir_util.copy_tree(src, None)
114
115
- @pytest.mark.xfail(reason="#304")
116
def test_mkpath_exception_uncached(self, monkeypatch, tmp_path):
117
"""
118
Caching should not remember failed attempts.
0 commit comments