Issue 19572: More silently skipped tests explicitly skipped.

This commit is contained in:
Zachary Ware 2013-12-08 00:44:27 -06:00
commit 101d9e7250
35 changed files with 135 additions and 142 deletions

View file

@ -508,7 +508,7 @@ class StatAttributeTests(unittest.TestCase):
try:
os.stat(r"c:\pagefile.sys")
except FileNotFoundError:
pass # file does not exist; cannot run test
self.skipTest(r'c:\pagefile.sys does not exist')
except OSError as e:
self.fail("Could not stat pagefile.sys")