summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-11-16 10:08:39 -0500
committerBen Gamari <ben@smart-cactus.org>2019-11-17 09:46:00 -0500
commit29df661737ffa0c8efa619adea8ea81003382be9 (patch)
treec6ea4d165313657fbedbb214a89b366ad92ea878 /testsuite/driver/testglobals.py
parentb88445d3070d492baf770d8cf6b64038ce65eec3 (diff)
downloadhaskell-wip/fix-windows-again.tar.gz
testsuite: Work around #17483wip/fix-windows-again
msys2 Python's wrapper for stat (called by Path.exists()) appears to fail randomly with errno=0. Work around this by retrying 10 times in the event that this happens.
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index c39ca7a8c9..a2d79391db 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -3,7 +3,7 @@
#
from my_typing import *
-from pathlib import Path
+from testutil import Path
from perf_notes import MetricChange, PerfStat, Baseline, MetricOracles
from datetime import datetime