move test_trace.py so as not to conflict with future tests for the trace module

This commit is contained in:
Benjamin Peterson 2010-07-20 22:37:19 +00:00
parent 533a167a71
commit 013783c529
8 changed files with 31 additions and 11 deletions

View file

@ -690,6 +690,14 @@ 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)