File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -344,8 +344,6 @@ def spam(a):
344344 self .assertEqual (y , 3 )
345345
346346 # TODO RustPython,
347- # seems to be general nesting problem, see
348- # test_named_expression_scop_10_rp_scope_prob as reference
349347 @unittest .expectedFailure # TODO RustPython
350348 def test_named_expression_scope_06 (self ):
351349 res = [[spam := i for i in range (3 )] for j in range (2 )]
@@ -384,8 +382,6 @@ def eggs(b):
384382 self .assertEqual (a , 2 )
385383
386384 # TODO RustPython,
387- # seems to be general nesting problem, see
388- # test_named_expression_scop_10_rp_scope_prob as reference
389385 @unittest .expectedFailure
390386 def test_named_expression_scope_10 (self ):
391387 res = [b := [a := 1 for i in range (2 )] for j in range (2 )]
@@ -394,23 +390,6 @@ def test_named_expression_scope_10(self):
394390 self .assertEqual (b , [1 , 1 ])
395391 self .assertEqual (a , 1 )
396392
397- # the following test is not from CPython and just as refernce for a common scoping problem of RustPython
398- def test_named_expression_scop_10_rp_scope_prob (self ):
399- def foo ():
400- rr = 36
401- def foo0 ():
402- nonlocal rr
403- def foo1 ():
404- nonlocal rr
405- self .assertEqual (rr ,36 )
406- rr += 42
407- foo1 ()
408- foo0 ()
409- return rr
410-
411- self .assertEqual (foo (), 78 )
412-
413-
414393 def test_named_expression_scope_11 (self ):
415394 res = [j := i for i in range (5 )]
416395
You can’t perform that action at this time.
0 commit comments