mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 19572: More silently skipped tests explicitly skipped.
This commit is contained in:
parent
774f909489
commit
9fe6d86709
34 changed files with 122 additions and 134 deletions
|
@ -263,7 +263,7 @@ class StatAttributeTests(unittest.TestCase):
|
|||
except OSError as e:
|
||||
# On AtheOS, glibc always returns ENOSYS
|
||||
if e.errno == errno.ENOSYS:
|
||||
return
|
||||
self.skipTest('glibc always returns ENOSYS on AtheOS')
|
||||
|
||||
# Make sure direct access works
|
||||
self.assertEqual(result.f_bfree, result[3])
|
||||
|
@ -480,7 +480,7 @@ class StatAttributeTests(unittest.TestCase):
|
|||
os.stat(r"c:\pagefile.sys")
|
||||
except WindowsError as e:
|
||||
if e.errno == 2: # file does not exist; cannot run test
|
||||
return
|
||||
self.skipTest(r'c:\pagefile.sys does not exist')
|
||||
self.fail("Could not stat pagefile.sys")
|
||||
|
||||
@unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue