commit | 013783c529cfc459d05d261f5053ad7bf7d88c29 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Jul 20 22:37:19 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Jul 20 22:37:19 2010 +0000 |
tree | 14e1b8205a78e85d9ba688f315cf89f82aad3a20 | |
parent | 533a167a713be4a30b92583636cd2323f4c8c3aa [diff] [blame] |
move test_trace.py so as not to conflict with future tests for the trace module
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index 643dcbc..1961e6e 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py
@@ -690,6 +690,14 @@ 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)