summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_scope.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-07 16:38:19 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-07 16:38:19 (GMT)
commitcd738364ce1a5de26a891b61d2c1baf1e692f0e0 (patch)
tree74f8a812d32886333e0a672a3cc628886a029c2f /Lib/test/test_scope.py
parentc4dcb6301940aebeebf9a7f8e937530788430c7b (diff)
downloadcpython-cd738364ce1a5de26a891b61d2c1baf1e692f0e0.zip
cpython-cd738364ce1a5de26a891b61d2c1baf1e692f0e0.tar.gz
cpython-cd738364ce1a5de26a891b61d2c1baf1e692f0e0.tar.bz2
silence warnings about import *
Diffstat (limited to 'Lib/test/test_scope.py')
-rw-r--r--Lib/test/test_scope.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index 58dd637..6eec3b5 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -1,5 +1,8 @@
from test.test_support import verify, TestFailed, check_syntax
+import warnings
+warnings.filterwarnings("ignore", "import *")
+
print "1. simple nesting"
def make_adder(x):
@@ -227,6 +230,7 @@ def f():
# and verify a few cases that should work
+exec """
def noproblem1():
from string import *
f = lambda x:x
@@ -241,6 +245,7 @@ def noproblem3():
def f(x):
global y
y = x
+"""
print "12. lambdas"
@@ -478,3 +483,5 @@ except TypeError:
pass
else:
print "eval() should have failed, because code contained free vars"
+
+warnings.resetwarnings()