diff options
author | Skip Montanaro <skip@pobox.com> | 2003-08-03 23:02:10 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2003-08-03 23:02:10 (GMT) |
commit | d5cf0b86df81700d86e8ce4db6181bde8f518955 (patch) | |
tree | 1109a7b74ef4b6477538933addf73588b29139fc /Lib/test/test_array.py | |
parent | c1b41545874f46d8c49ba9b02a0c1b9625702428 (diff) | |
download | cpython-d5cf0b86df81700d86e8ce4db6181bde8f518955.zip cpython-d5cf0b86df81700d86e8ce4db6181bde8f518955.tar.gz cpython-d5cf0b86df81700d86e8ce4db6181bde8f518955.tar.bz2 |
added test for bug 782369
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 758b57c..b3fd3fe 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): |