]> granicus.if.org Git - python/commit
Made test_file pass. This meant adding support for read(-1) and read()
authorGuido van Rossum <guido@python.org>
Tue, 10 Jul 2007 06:54:34 +0000 (06:54 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Jul 2007 06:54:34 +0000 (06:54 +0000)
commit7165cb1a485b1b5574785eac6e2edc8787e43c38
tree1b8edb82abcc8ef143923a43366b6a90842b5692
parente8432ac42f9030bd75de03a07fd9059006292b7a
Made test_file pass.  This meant adding support for read(-1) and read()
to even the most basic file object (I also added readall() which may
be a better API).  Also, not all the tests requiring specific failure
modes could be saved.  And there were the usual str/bytes issues.
I made sure test_io.py still passes (io.py is now most thoroughly
tested by combining test_file.py and test_io.py).
Lib/io.py
Lib/test/test_file.py
Modules/_fileio.c