diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index dde169a05d5..bb29f8b9a75 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py @@ -1,7 +1,7 @@ from test_support import verify, TestFailed, check_syntax import warnings -warnings.filterwarnings("ignore", "import *") +warnings.filterwarnings("ignore", r"import \*", SyntaxWarning, "") 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: