summaryrefslogtreecommitdiff
path: root/Lib/test/test_StringIO.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-11-01 17:10:19 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-11-01 17:10:19 +0000
commitca377160ca4f2c23bdca8fc41e24ebad0db59a6e (patch)
tree72be21937c32811ffacc7b3493297be93bfad396 /Lib/test/test_StringIO.py
parentfb3e8412c74c09f50cce6b5db431a901ae49c55b (diff)
downloadcpython-ca377160ca4f2c23bdca8fc41e24ebad0db59a6e.tar.gz
Add error checks for the bz2, cStringIO and operator modules.
Add function names to various PyArg_ParseTuple calls in bz2module.c.
Diffstat (limited to 'Lib/test/test_StringIO.py')
-rw-r--r--Lib/test/test_StringIO.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py
index 6842c5ef88..e74a427af0 100644
--- a/Lib/test/test_StringIO.py
+++ b/Lib/test/test_StringIO.py
@@ -24,12 +24,14 @@ class TestGenericStringIO(unittest.TestCase):
def test_reads(self):
eq = self.assertEqual
+ self.assertRaises(TypeError, self._fp.seek)
eq(self._fp.read(10), self._line[:10])
eq(self._fp.readline(), self._line[10:] + '\n')
eq(len(self._fp.readlines(60)), 2)
def test_writes(self):
f = self.MODULE.StringIO()
+ self.assertRaises(TypeError, f.seek)
f.write(self._line[:6])
f.seek(3)
f.write(self._line[20:26])