[Python-checkins] python/dist/src/Lib/test test_array.py,1.24,1.25
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Sun Aug 3 17:02:12 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv2454
Modified Files:
test_array.py
Log Message:
added test for bug 782369
Index: test_array.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_array.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** test_array.py 22 May 2003 13:29:15 -0000 1.24
--- test_array.py 3 Aug 2003 23:02:10 -0000 1.25
***************
*** 601,604 ****
--- 601,613 ----
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):
More information about the Python-checkins
mailing list