summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_scope.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-07-20 22:39:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-07-20 22:39:34 (GMT)
commit20f9c3c50f5e642295040c05e574ff9dc84bf207 (patch)
treea0bb84cba5bcdcb1fb7b059930076f52d3d3225c /Lib/test/test_scope.py
parent013783c529cfc459d05d261f5053ad7bf7d88c29 (diff)
downloadcpython-20f9c3c50f5e642295040c05e574ff9dc84bf207.zip
cpython-20f9c3c50f5e642295040c05e574ff9dc84bf207.tar.gz
cpython-20f9c3c50f5e642295040c05e574ff9dc84bf207.tar.bz2
revert unintended changes
Diffstat (limited to 'Lib/test/test_scope.py')
-rw-r--r--Lib/test/test_scope.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index 1961e6e..643dcbc 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -690,14 +690,6 @@ result2 = h()
h = g()
self.assertEqual(h(), 3)
- def testLocalClosureShadowing(self):
- exec("""
-x = 4
-def f(x):
- class C:
- x = x
-raises(NameError, f, 3)""", {"raises" : self.assertRaises})
-
def test_main():
run_unittest(ScopeTests)