Kaydet (Commit) 3c668c12 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add next and __iter__ to the list of file methods that should raise

ValueError when called for a closed file.
üst 7a6e9594
......@@ -89,7 +89,9 @@ f.close()
if not f.closed:
raise TestFailed, 'file.closed should be true'
methods = ['fileno', 'flush', 'isatty', 'read', 'readinto', 'readline', 'readlines', 'seek', 'tell', 'truncate', 'write', 'xreadlines' ]
methods = ['fileno', 'flush', 'isatty', 'next', 'read', 'readinto',
'readline', 'readlines', 'seek', 'tell', 'truncate', 'write',
'xreadlines', '__iter__']
if sys.platform.startswith('atheos'):
methods.remove('truncate')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment