diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-24 11:59:41 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-24 11:59:41 (GMT) |
commit | f98a267be374508c04faa4200f552804399faed8 (patch) | |
tree | 9bc0e9ada7b01b26211123037c18367aff7b978e /Lib/test | |
parent | 5f029ce66420c3259a6655dc52769edf494c5248 (diff) | |
download | cpython-f98a267be374508c04faa4200f552804399faed8.zip cpython-f98a267be374508c04faa4200f552804399faed8.tar.gz cpython-f98a267be374508c04faa4200f552804399faed8.tar.bz2 |
Manual py3k backport: [svn r74155] Issue #6242: Fix deallocator of io.StringIO and io.BytesIO
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_memoryio.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py index d6bff67..8972f79 100644 --- a/Lib/test/test_memoryio.py +++ b/Lib/test/test_memoryio.py @@ -345,6 +345,13 @@ class MemoryTestMixin: self.assertEqual(test1(), buf) self.assertEqual(test2(), buf) + def test_instance_dict_leak(self): + # Test case for issue #6242. + # This will be caught by regrtest.py -R if this leak. + for _ in range(100): + memio = self.ioclass() + memio.foo = 1 + class PyBytesIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase): |