diff options
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/testlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 3ee9a8afdf..0b3d7a2f94 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -2312,11 +2312,11 @@ if config.msys: testdir = getTestOpts().testdir # type: Path max_attempts = 5 retries = max_attempts - def on_error(function, path, excinfo): + def on_error(function, path: str, excinfo): # At least one test (T11489) removes the write bit from a file it # produces. Windows refuses to delete read-only files with a # permission error. Try setting the write bit and try again. - path.chmod(stat.S_IWRITE) + Path(path).chmod(stat.S_IWRITE) function(path) # On Windows we have to retry the delete a couple of times. |