[Python-checkins] commit of r41602 - python/trunk/Lib/test/test_file.py

Michael Hudson mwh at python.net
Fri Dec 9 11:10:07 CET 2005


Guido van Rossum <guido at python.org> writes:

> I think that defeats the purpose of the test; f.seek(-1) raises
> IOError on a regular seekable file as well.

The purpose of the test is to get some coverage of the "an error
occurred" code in fileobject.c, which seems worthwhile to me, and
f.seek(-1) is probably a fine way of doing that.  f.tell(), now, I am
not sure about.

Cheers,
mwh

-- 
  Hmmm... its Sunday afternoon: I could do my work, or I could do a
  Fourier analysis of my computer's fan noise.
       -- Amit Muthu, ucam.chat (from Owen Dunn's summary of the year)


More information about the Python-checkins mailing list