Mercurial > cpython-lru_cache-weakref
annotate Lib/test/test_StringIO.py @ 33845:032f342efcd2 legacy-trunk
Very few little improvements.
| author | Facundo Batista <facundobatista@gmail.com> |
|---|---|
| date | Tue, 26 Oct 2004 23:38:46 +0000 |
| parents | db1bafa9b656 |
| children | a8c979cc4fa6 |
| rev | line source |
|---|---|
|
14688
d6ffb6d7fe8a
New test cases for the StringIO module
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
1 # Tests StringIO and cStringIO |
|
d6ffb6d7fe8a
New test cases for the StringIO module
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
2 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
3 import unittest |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
4 import StringIO |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
5 import cStringIO |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
6 import types |
|
24364
aa0d2d51fbde
Get rid of relative imports in all unittests. Now anything that
Barry Warsaw <barry@python.org>
parents:
23432
diff
changeset
|
7 from test import test_support |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
8 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
9 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
10 class TestGenericStringIO(unittest.TestCase): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
11 # use a class variable MODULE to define which module is being tested |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
12 |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
13 # Line of data to test as string |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
14 _line = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!' |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
15 |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
16 # Constructor to use for the test data (._line is passed to this |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
17 # constructor) |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
18 constructor = str |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
19 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
20 def setUp(self): |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
21 self._line = self.constructor(self._line) |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
22 self._lines = self.constructor((self._line + '\n') * 5) |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
23 self._fp = self.MODULE.StringIO(self._lines) |
|
14688
d6ffb6d7fe8a
New test cases for the StringIO module
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
24 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
25 def test_reads(self): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
26 eq = self.assertEqual |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
27 eq(self._fp.read(10), self._line[:10]) |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
28 eq(self._fp.readline(), self._line[10:] + '\n') |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
29 eq(len(self._fp.readlines(60)), 2) |
|
16546
60a2e99c863b
In O_writelines: Replace use of string.joinfields with "".join.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
15175
diff
changeset
|
30 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
31 def test_writes(self): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
32 f = self.MODULE.StringIO() |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
33 f.write(self._line[:6]) |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
34 f.seek(3) |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
35 f.write(self._line[20:26]) |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
36 f.write(self._line[52]) |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
37 self.assertEqual(f.getvalue(), 'abcuvwxyz!') |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
38 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
39 def test_writelines(self): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
40 f = self.MODULE.StringIO() |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
41 f.writelines([self._line[0], self._line[1], self._line[2]]) |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
42 f.seek(0) |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
43 self.assertEqual(f.getvalue(), 'abc') |
|
16546
60a2e99c863b
In O_writelines: Replace use of string.joinfields with "".join.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
15175
diff
changeset
|
44 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
45 def test_truncate(self): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
46 eq = self.assertEqual |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
47 f = self.MODULE.StringIO() |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
48 f.write(self._lines) |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
49 f.seek(10) |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
50 f.truncate() |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
51 eq(f.getvalue(), 'abcdefghij') |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
52 f.truncate(5) |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
53 eq(f.getvalue(), 'abcde') |
|
33213
db1bafa9b656
Patch 1012740: cStringIO's truncate doesn't
Tim Peters <tim.peters@gmail.com>
parents:
30096
diff
changeset
|
54 f.write('xyz') |
|
db1bafa9b656
Patch 1012740: cStringIO's truncate doesn't
Tim Peters <tim.peters@gmail.com>
parents:
30096
diff
changeset
|
55 eq(f.getvalue(), 'abcdexyz') |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
56 f.close() |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
57 self.assertRaises(ValueError, f.write, 'frobnitz') |
|
14905
45967ff1b6dc
Added some tests for the truncate() method; one is commented out because
Fred Drake <fdrake@acm.org>
parents:
14688
diff
changeset
|
58 |
|
30096
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
59 def test_closed_flag(self): |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
60 f = self.MODULE.StringIO() |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
61 self.assertEqual(f.closed, False) |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
62 f.close() |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
63 self.assertEqual(f.closed, True) |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
64 f = self.MODULE.StringIO("abc") |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
65 self.assertEqual(f.closed, False) |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
66 f.close() |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
67 self.assertEqual(f.closed, True) |
|
06016d5d81d7
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger <python@rcn.com>
parents:
28917
diff
changeset
|
68 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
69 def test_iterator(self): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
70 eq = self.assertEqual |
|
20096
19abc339d3fc
test_iterator(): Don't do a type comparison to see if it's an
Barry Warsaw <barry@python.org>
parents:
20060
diff
changeset
|
71 unless = self.failUnless |
|
28772
0ea5991f6edb
SF patch 695710: fix bug 678519: cStringIO self iterator
Raymond Hettinger <python@rcn.com>
parents:
24364
diff
changeset
|
72 eq(iter(self._fp), self._fp) |
|
20096
19abc339d3fc
test_iterator(): Don't do a type comparison to see if it's an
Barry Warsaw <barry@python.org>
parents:
20060
diff
changeset
|
73 # Does this object support the iteration protocol? |
|
28772
0ea5991f6edb
SF patch 695710: fix bug 678519: cStringIO self iterator
Raymond Hettinger <python@rcn.com>
parents:
24364
diff
changeset
|
74 unless(hasattr(self._fp, '__iter__')) |
|
0ea5991f6edb
SF patch 695710: fix bug 678519: cStringIO self iterator
Raymond Hettinger <python@rcn.com>
parents:
24364
diff
changeset
|
75 unless(hasattr(self._fp, 'next')) |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
76 i = 0 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
77 for line in self._fp: |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
78 eq(line, self._line + '\n') |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
79 i += 1 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
80 eq(i, 5) |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
81 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
82 class TestStringIO(TestGenericStringIO): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
83 MODULE = StringIO |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
84 |
|
21656
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
85 def test_unicode(self): |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
86 |
|
23432
56240bcda88c
Make StringIO work in --disable-unicode builds...
Michael W. Hudson <mwh@python.net>
parents:
21958
diff
changeset
|
87 if not test_support.have_unicode: return |
|
56240bcda88c
Make StringIO work in --disable-unicode builds...
Michael W. Hudson <mwh@python.net>
parents:
21958
diff
changeset
|
88 |
|
21656
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
89 # The StringIO module also supports concatenating Unicode |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
90 # snippets to larger Unicode strings. This is tested by this |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
91 # method. Note that cStringIO does not support this extension. |
|
21958
5ed782bdbb2a
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
21656
diff
changeset
|
92 |
|
21656
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
93 f = self.MODULE.StringIO() |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
94 f.write(self._line[:6]) |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
95 f.seek(3) |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
96 f.write(unicode(self._line[20:26])) |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
97 f.write(unicode(self._line[52])) |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
98 s = f.getvalue() |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
99 self.assertEqual(s, unicode('abcuvwxyz!')) |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
100 self.assertEqual(type(s), types.UnicodeType) |
|
6b0e16cb65d5
Restore Python 2.1 StringIO.py behaviour: support concatenating
Marc-André Lemburg <mal@egenix.com>
parents:
21320
diff
changeset
|
101 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
102 class TestcStringIO(TestGenericStringIO): |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
103 MODULE = cStringIO |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
104 |
|
21320
60df2bf854ac
A workaround for the missing buffer() builtin in jython.
Finn Bock <bckfnn@worldonline.dk>
parents:
20096
diff
changeset
|
105 import sys |
|
60df2bf854ac
A workaround for the missing buffer() builtin in jython.
Finn Bock <bckfnn@worldonline.dk>
parents:
20096
diff
changeset
|
106 if sys.platform.startswith('java'): |
|
60df2bf854ac
A workaround for the missing buffer() builtin in jython.
Finn Bock <bckfnn@worldonline.dk>
parents:
20096
diff
changeset
|
107 # Jython doesn't have a buffer object, so we just do a useless |
|
60df2bf854ac
A workaround for the missing buffer() builtin in jython.
Finn Bock <bckfnn@worldonline.dk>
parents:
20096
diff
changeset
|
108 # fake of the buffer tests. |
|
60df2bf854ac
A workaround for the missing buffer() builtin in jython.
Finn Bock <bckfnn@worldonline.dk>
parents:
20096
diff
changeset
|
109 buffer = str |
|
60df2bf854ac
A workaround for the missing buffer() builtin in jython.
Finn Bock <bckfnn@worldonline.dk>
parents:
20096
diff
changeset
|
110 |
|
20060
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
111 class TestBufferStringIO(TestStringIO): |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
112 constructor = buffer |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
113 |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
114 class TestBuffercStringIO(TestcStringIO): |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
115 constructor = buffer |
|
ccec02bfe9a0
StringIO patch #462596: let's [c]StringIO accept read buffers on
Marc-André Lemburg <mal@egenix.com>
parents:
20030
diff
changeset
|
116 |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
117 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
118 def test_main(): |
|
28917
1741af48fd9f
Combine the functionality of test_support.run_unittest()
Walter Dörwald <walter@livinglogic.de>
parents:
28772
diff
changeset
|
119 test_support.run_unittest( |
|
1741af48fd9f
Combine the functionality of test_support.run_unittest()
Walter Dörwald <walter@livinglogic.de>
parents:
28772
diff
changeset
|
120 TestStringIO, |
|
1741af48fd9f
Combine the functionality of test_support.run_unittest()
Walter Dörwald <walter@livinglogic.de>
parents:
28772
diff
changeset
|
121 TestcStringIO, |
|
1741af48fd9f
Combine the functionality of test_support.run_unittest()
Walter Dörwald <walter@livinglogic.de>
parents:
28772
diff
changeset
|
122 TestBufferStringIO, |
|
1741af48fd9f
Combine the functionality of test_support.run_unittest()
Walter Dörwald <walter@livinglogic.de>
parents:
28772
diff
changeset
|
123 TestBuffercStringIO |
|
1741af48fd9f
Combine the functionality of test_support.run_unittest()
Walter Dörwald <walter@livinglogic.de>
parents:
28772
diff
changeset
|
124 ) |
|
20030
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
125 |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
126 if __name__ == '__main__': |
|
6378cb117b73
Converted test_StringIO.py to use unittest, so
Barry Warsaw <barry@python.org>
parents:
16546
diff
changeset
|
127 test_main() |
