summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_StringIO.py
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Make StringIO work in --disable-unicode builds...Michael W. Hudson2002-05-131-0/+2
|
* Whitespace normalization.Tim Peters2002-02-161-1/+1
|
* Restore Python 2.1 StringIO.py behaviour: support concatenatingMarc-André Lemburg2002-01-061-0/+15
| | | | | | Unicode string snippets to larger Unicode strings. This fix should also go into Python 2.2.1.
* A workaround for the missing buffer() builtin in jython.Finn Bock2001-12-091-0/+6
| | | | This closes patch "[ #490850 ] Jython and test_StringIO".
* 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