diff options
Diffstat (limited to 'Lib/test/test_fcntl.py')
-rwxr-xr-x | Lib/test/test_fcntl.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index 3c18f1d66d..e8eeaaa7bf 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', |