diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-24 20:11:21 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-24 20:11:21 (GMT) |
commit | 6103ab1d0b3361486960f3fa7711f20c91c535f5 (patch) | |
tree | c4ab6589e1e01f758500b6a054e19a747d3086cb /Lib/test | |
parent | 194fcf2d15c90ae9ed9cb9e1d95721e6a6e54281 (diff) | |
download | cpython-6103ab1d0b3361486960f3fa7711f20c91c535f5.zip cpython-6103ab1d0b3361486960f3fa7711f20c91c535f5.tar.gz cpython-6103ab1d0b3361486960f3fa7711f20c91c535f5.tar.bz2 |
Remove AtheOS support, as per PEP 11 (which claims that all code was removed in Python 3.0).
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/regrtest.py | 13 | ||||
-rwxr-xr-x | Lib/test/test_fcntl.py | 13 | ||||
-rw-r--r-- | Lib/test/test_file.py | 3 | ||||
-rw-r--r-- | Lib/test/test_fileio.py | 2 |
4 files changed, 6 insertions, 25 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 6fe4eda..2d485b3 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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 diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index 3c18f1d..e8eeaaa 100755 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@ -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', diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py index bd2d7c0..fa867e0 100644 --- a/Lib/test/test_file.py +++ b/Lib/test/test_file.py @@ -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) diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index 679ed08..4ce3746 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -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) |