##// END OF EJS Templates
run-tests: ignore ENOENT failures when removing old .err results...
Augie Fackler -
r24332:9612b967 default
parent child Browse files
Show More
@@ -461,7 +461,14 b' class Test(unittest.TestCase):'
461
461
462 # Remove any previous output files.
462 # Remove any previous output files.
463 if os.path.exists(self.errpath):
463 if os.path.exists(self.errpath):
464 try:
464 os.remove(self.errpath)
465 os.remove(self.errpath)
466 except OSError, e:
467 # We might have raced another test to clean up a .err
468 # file, so ignore ENOENT when removing a previous .err
469 # file.
470 if e.errno != errno.ENOENT:
471 raise
465
472
466 def run(self, result):
473 def run(self, result):
467 """Run this test and report results against a TestResult instance."""
474 """Run this test and report results against a TestResult instance."""
General Comments 0
You need to be logged in to leave comments. Login now