Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
diff --git a/Lib/test/seq_tests.py b/Lib/test/seq_tests.py
index 14303aa..f6b15bf 100644
--- a/Lib/test/seq_tests.py
+++ b/Lib/test/seq_tests.py
@@ -4,6 +4,7 @@
import unittest
import sys
+import test_support
# Various iterables
# This is used for checking the constructor (here and in test_deque.py)
@@ -196,7 +197,9 @@
self.assertEqual(a[ -pow(2,128L): 3 ], self.type2test([0,1,2]))
self.assertEqual(a[ 3: pow(2,145L) ], self.type2test([3,4]))
- self.assertRaises(TypeError, u.__getslice__)
+ # Silence Py3k warning
+ with test_support.check_warnings():
+ self.assertRaises(TypeError, u.__getslice__)
def test_contains(self):
u = self.type2test([0, 1, 2])