summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_StringIO.py
Commit message (Collapse)AuthorAgeFilesLines
* test_iterator(): Don't do a type comparison to see if it's anBarry Warsaw2001-09-251-1/+4
| | | | | | iterator, just test to make sure it has the two required iterator protocol methods __iter__() and next() -- actually just test hasattr-ness.
* StringIO patch #462596: let's [c]StringIO accept read buffers onMarc-André Lemburg2001-09-241-8/+23
| | | | input to .write() too.
* Converted test_StringIO.py to use unittest, soBarry Warsaw2001-09-221-41/+71
| | | | | | | Lib/test/output/test_StringIO is no longer necessary. Also, added a test of the iterator protocol that's just been added to StringIO's and cStringIO's.
* In O_writelines: Replace use of string.joinfields with "".join.Jeremy Hylton2001-02-091-1/+7
|
* Added a test for the StringIO write() error I just fixed.Guido van Rossum2000-10-121-0/+7
|
* Jack Jansen reported that the regression test failed on the Mac whereGuido van Rossum2000-10-111-3/+1
| | | | | | | string.letters was much more than expected. Solution: explicit is better than implicit; don't rely on string.letters.
* Uncommented tests that failed for cStringIO,Jim Fulton2000-10-061-17/+11
| | | | Added missing clode to make the clode test test a close. ;)
* Added some tests for the truncate() method; one is commented out becauseFred Drake2000-09-281-0/+23
| | | | | | | | cStringIO does not get it right (reported as SF bug #115531). Added test for ValueError when write() is called on a closed StringIO object. Commented out because cStringIO does not get it right (reported as SF bug #115530).
* New test cases for the StringIO moduleMartin v. Löwis2000-09-191-0/+15