From: Skip Montanaro Date: Sun, 3 Aug 2003 23:02:10 +0000 (+0000) Subject: added test for bug 782369 X-Git-Tag: v2.4a1~1807 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5cf0b86df81700d86e8ce4db6181bde8f518955;p=python added test for bug 782369 --- diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 758b57c18f..b3fd3fe39f 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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):