summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_StringIO.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2006-03-15 08:23:53 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2006-03-15 08:23:53 (GMT)
commit0af5d93d8a9ce44343630c24140977fa841dfe04 (patch)
treed85ea652f568c9b31ae51554fdd223114ae1c1a3 /Lib/test/test_StringIO.py
parent4a53dadc3edf80785b8c99a780727dea005ee1e3 (diff)
downloadcpython-0af5d93d8a9ce44343630c24140977fa841dfe04.zip
cpython-0af5d93d8a9ce44343630c24140977fa841dfe04.tar.gz
cpython-0af5d93d8a9ce44343630c24140977fa841dfe04.tar.bz2
SF patch #1359365: file and cStringIO raise a ValueError when next() is called
after calling close(). Change StringIO, so that it behaves the same way.
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 c61f7cc..a2e5444 100644
--- a/Lib/test/test_StringIO.py
+++ b/Lib/test/test_StringIO.py
@@ -87,6 +87,8 @@ class TestGenericStringIO(unittest.TestCase):
eq(line, self._line + '\n')
i += 1
eq(i, 5)
+ self._fp.close()
+ self.assertRaises(ValueError, self._fp.next)
class TestStringIO(TestGenericStringIO):
MODULE = StringIO