This commit is contained in:
Christian Heimes 2013-10-12 01:41:49 +02:00
commit cbf6e95de5

View file

@ -281,7 +281,7 @@ def test_statvfs_attributes(self):
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 @@ def test_statvfs_result_pickle(self):
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)