mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Patch #488073: AtheOS port.
This commit is contained in:
parent
7981ce576c
commit
f90ae20354
23 changed files with 1782 additions and 17 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import sys
|
||||
import os
|
||||
from array import array
|
||||
|
||||
|
|
@ -88,7 +89,11 @@ f.close()
|
|||
if not f.closed:
|
||||
raise TestFailed, 'file.closed should be true'
|
||||
|
||||
for methodname in ['fileno', 'flush', 'isatty', 'read', 'readinto', 'readline', 'readlines', 'seek', 'tell', 'truncate', 'write', 'xreadlines' ]:
|
||||
methods = ['fileno', 'flush', 'isatty', 'read', 'readinto', 'readline', 'readlines', 'seek', 'tell', 'truncate', 'write', 'xreadlines' ]
|
||||
if sys.platform.startswith('atheos'):
|
||||
methods.remove('truncate')
|
||||
|
||||
for methodname in methods:
|
||||
method = getattr(f, methodname)
|
||||
try:
|
||||
method()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue