summaryrefslogtreecommitdiff
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-08-03 23:02:10 +0000
committerSkip Montanaro <skip@pobox.com>2003-08-03 23:02:10 +0000
commit55c4a5a13974c86060b80a0f87dae0e2c90c58d5 (patch)
treee848ce85da6a5f1de55e4b0593fa5f7bd1580f07 /Lib/test/test_array.py
parent408b69a156338b3d9fb9bc38d4c47c2bcf29859a (diff)
downloadcpython-55c4a5a13974c86060b80a0f87dae0e2c90c58d5.tar.gz
added test for bug 782369
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py9
1 files changed, 9 insertions, 0 deletions
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):