Commit 4a9bb02e authored by Guido van Rossum's avatar Guido van Rossum

Don't call resetwarnings(). Be more restrictive in what we filter out

instead.
parent fd858a43
from test_support import verify, TestFailed, check_syntax
import warnings
warnings.filterwarnings("ignore", "import *")
warnings.filterwarnings("ignore", r"import \*", SyntaxWarning, "<string>")
print "1. simple nesting"
......@@ -491,8 +491,6 @@ except TypeError:
else:
print "exec should have failed, because code contained free vars"
warnings.resetwarnings()
print "21. list comprehension with local variables"
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment