diff --git a/test/simple/testcfg.py b/test/simple/testcfg.py index 57420325cc..bb2c4d1af1 100644 --- a/test/simple/testcfg.py +++ b/test/simple/testcfg.py @@ -55,7 +55,10 @@ class SimpleTestCase(test.TestCase): except: pass # make it again. - mkdir(self.tmpdir) + try: + mkdir(self.tmpdir) + except: + pass def BeforeRun(self): # delete the whole tmp dir @@ -64,7 +67,12 @@ class SimpleTestCase(test.TestCase): except: pass # make it again. - mkdir(self.tmpdir) + # intermittently fails on win32, so keep trying + while not os.path.exists(self.tmpdir): + try: + mkdir(self.tmpdir) + except: + pass def GetLabel(self): return "%s %s" % (self.mode, self.GetName())