Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index 7669182..af89d18 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -129,7 +129,9 @@
def test_buffer(self):
for s in ["", "Andrè Previn", "abc", " "*10000]:
- b = buffer(s)
+ # Silence Py3k warning
+ with test_support.check_warnings():
+ b = buffer(s)
new = marshal.loads(marshal.dumps(b))
self.assertEqual(s, new)
marshal.dump(b, file(test_support.TESTFN, "wb"))