mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
This commit is contained in:
parent
3194d1454c
commit
3ddc435af6
107 changed files with 794 additions and 436 deletions
|
|
@ -749,7 +749,9 @@ class BaseTest(unittest.TestCase):
|
|||
|
||||
def test_buffer(self):
|
||||
a = array.array(self.typecode, self.example)
|
||||
b = buffer(a)
|
||||
# Silence Py3k warning
|
||||
with test_support.check_warnings():
|
||||
b = buffer(a)
|
||||
self.assertEqual(b[0], a.tostring()[0])
|
||||
|
||||
def test_weakref(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue