Remove AtheOS support, as per PEP 11 (which claims that all code was removed in Python 3.0).

This commit is contained in:
Antoine Pitrou 2009-10-24 20:11:21 +00:00
parent 194fcf2d15
commit 6103ab1d0b
16 changed files with 31 additions and 1693 deletions

View file

@ -1188,19 +1188,6 @@ _expectations = {
test_zipfile
test_zlib
""",
'atheos':
"""
test_curses
test_dbm_gnu
test_epoll
test_largefile
test_locale
test_kqueue
test_mhlib
test_mmap
test_poll
test_resource
""",
'cygwin':
"""
test_curses

View file

@ -16,15 +16,12 @@ fcntl = import_module('fcntl')
# TODO - Write tests for flock() and lockf().
def get_lockdata():
if sys.platform.startswith('atheos'):
start_len = "qq"
try:
os.O_LARGEFILE
except AttributeError:
start_len = "ll"
else:
try:
os.O_LARGEFILE
except AttributeError:
start_len = "ll"
else:
start_len = "qq"
start_len = "qq"
if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
'Darwin1.2', 'darwin',

View file

@ -106,8 +106,7 @@ class AutoFileTests(unittest.TestCase):
('writelines', ([],)),
('__iter__', ()),
]
if not sys.platform.startswith('atheos'):
methods.append(('truncate', ()))
methods.append(('truncate', ()))
# __exit__ should close the file
self.f.__exit__(None, None, None)

View file

@ -96,8 +96,6 @@ class AutoFileTests(unittest.TestCase):
methods = ['fileno', 'isatty', 'read', 'readinto',
'seek', 'tell', 'truncate', 'write', 'seekable',
'readable', 'writable']
if sys.platform.startswith('atheos'):
methods.remove('truncate')
self.f.close()
self.assertTrue(self.f.closed)