Commit 55c4a5a1 authored by Skip Montanaro's avatar Skip Montanaro

added test for bug 782369

parent 408b69a1
......@@ -600,6 +600,15 @@ class BaseTest(unittest.TestCase):
b = buffer(a)
self.assertEqual(b[0], a.tostring()[0])
def test_bug_782369(self):
import sys
for i in range(10):
b = array.array('B', range(64))
rc = sys.getrefcount(10)
for i in range(10):
b = array.array('B', range(64))
self.assertEqual(rc, sys.getrefcount(10))
class StringTest(BaseTest):
def test_setitem(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment