mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
test_os: report tests as skipped when os.statvfs() fails with ENOSYS
This commit is contained in:
parent
2582762b1b
commit
370cb25307
1 changed files with 3 additions and 2 deletions
|
@ -281,7 +281,7 @@ class StatAttributeTests(unittest.TestCase):
|
|||
except OSError as e:
|
||||
# On AtheOS, glibc always returns ENOSYS
|
||||
if e.errno == errno.ENOSYS:
|
||||
return
|
||||
self.skipTest('os.statvfs() failed with ENOSYS')
|
||||
|
||||
# Make sure direct access works
|
||||
self.assertEqual(result.f_bfree, result[3])
|
||||
|
@ -326,7 +326,8 @@ class StatAttributeTests(unittest.TestCase):
|
|||
except OSError as e:
|
||||
# On AtheOS, glibc always returns ENOSYS
|
||||
if e.errno == errno.ENOSYS:
|
||||
return
|
||||
self.skipTest('os.statvfs() failed with ENOSYS')
|
||||
|
||||
p = pickle.dumps(result)
|
||||
self.assertIn(b'\x03cos\nstatvfs_result\n', p)
|
||||
unpickled = pickle.loads(p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue