Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox

This commit is contained in:
Senthil Kumaran 2010-01-08 18:41:40 +00:00
parent 3194d1454c
commit 3ddc435af6
107 changed files with 794 additions and 436 deletions

View file

@ -150,7 +150,6 @@ option '-uall,-bsddb'.
import cStringIO
import getopt
import itertools
import json
import os
import random
import re
@ -160,15 +159,13 @@ import traceback
import warnings
import unittest
# I see no other way to suppress these warnings;
# putting them in test_grammar.py has no effect:
warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning,
".*test.test_grammar$")
if sys.maxint > 0x7fffffff:
# Also suppress them in <string>, because for 64-bit platforms,
# that's where test_grammar.py hides them.
warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning,
"<string>")
with warnings.catch_warnings():
# Silence Py3k warnings
warnings.filterwarnings("ignore", "tuple parameter unpacking "
"has been removed", SyntaxWarning)
warnings.filterwarnings("ignore", "assignment to True or False "
"is forbidden", SyntaxWarning)
import json
# Ignore ImportWarnings that only occur in the source tree,
# (because of modules with the same name as source-directories in Modules/)