mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fixes bpo-31866: remove code pertaining to AtheOS support (#4115)
We stop support this OS in 2007 with commit
19fab761b7
. Let's finish.
This commit is contained in:
parent
1896793520
commit
4eaf7f9490
4 changed files with 5 additions and 32 deletions
|
@ -341,12 +341,7 @@ class StatAttributeTests(unittest.TestCase):
|
|||
|
||||
@unittest.skipUnless(hasattr(os, 'statvfs'), 'test needs os.statvfs()')
|
||||
def test_statvfs_attributes(self):
|
||||
try:
|
||||
result = os.statvfs(self.fname)
|
||||
except OSError as e:
|
||||
# On AtheOS, glibc always returns ENOSYS
|
||||
if e.errno == errno.ENOSYS:
|
||||
self.skipTest('os.statvfs() failed with ENOSYS')
|
||||
result = os.statvfs(self.fname)
|
||||
|
||||
# Make sure direct access works
|
||||
self.assertEqual(result.f_bfree, result[3])
|
||||
|
@ -386,12 +381,7 @@ class StatAttributeTests(unittest.TestCase):
|
|||
@unittest.skipUnless(hasattr(os, 'statvfs'),
|
||||
"need os.statvfs()")
|
||||
def test_statvfs_result_pickle(self):
|
||||
try:
|
||||
result = os.statvfs(self.fname)
|
||||
except OSError as e:
|
||||
# On AtheOS, glibc always returns ENOSYS
|
||||
if e.errno == errno.ENOSYS:
|
||||
self.skipTest('os.statvfs() failed with ENOSYS')
|
||||
result = os.statvfs(self.fname)
|
||||
|
||||
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
|
||||
p = pickle.dumps(result, proto)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue