Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_StringIO.py @ 70425:720804a91c01 2.7
raise an ValueError in getvalue() on closed StringIO (closes #12161)
Thanks for Catalin Iacob for the patch.
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Thu, 26 May 2011 09:56:41 -0500 |
| parents | b36cb4602e21 |
| children | c91661e0d714 |
line wrap: on
line diff
--- a/Lib/test/test_StringIO.py Thu May 26 13:37:25 2011 +0200 +++ b/Lib/test/test_StringIO.py Thu May 26 09:56:41 2011 -0500 @@ -100,6 +100,10 @@ self._fp.close() self.assertRaises(ValueError, self._fp.next) + def test_getvalue(self): + self._fp.close() + self.assertRaises(ValueError, self._fp.getvalue) + class TestStringIO(TestGenericStringIO): MODULE = StringIO
