mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
move test_trace.py so as not to conflict with future tests for the trace module
This commit is contained in:
parent
533a167a71
commit
013783c529
8 changed files with 31 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue