mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
added test for bug 782369
This commit is contained in:
parent
c1b4154587
commit
d5cf0b86df
1 changed files with 9 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue