summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-10-26 06:55:14 (GMT)
committerGitHub <noreply@github.com>2017-10-26 06:55:14 (GMT)
commit4eaf7f949069882e385f2297c9e70031caf9144c (patch)
tree49e06a8bb9d5893f2b70a6ed7d3338b6fb70404a /Lib/test/test_os.py
parent1896793520a49a6f97ae360c0b288967e56b005e (diff)
downloadcpython-4eaf7f949069882e385f2297c9e70031caf9144c.zip
cpython-4eaf7f949069882e385f2297c9e70031caf9144c.tar.gz
cpython-4eaf7f949069882e385f2297c9e70031caf9144c.tar.bz2
fixes bpo-31866: remove code pertaining to AtheOS support (#4115)
We stop support this OS in 2007 with commit 19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 18edbcd..eb73af5 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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)