mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove AtheOS support, as per PEP 11 (which claims that all code was removed in Python 3.0).
This commit is contained in:
parent
194fcf2d15
commit
6103ab1d0b
16 changed files with 31 additions and 1693 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue