File tree 1 file changed +0
-21
lines changed 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -344,8 +344,6 @@ def spam(a):
344
344
self .assertEqual (y , 3 )
345
345
346
346
# TODO RustPython,
347
- # seems to be general nesting problem, see
348
- # test_named_expression_scop_10_rp_scope_prob as reference
349
347
@unittest .expectedFailure # TODO RustPython
350
348
def test_named_expression_scope_06 (self ):
351
349
res = [[spam := i for i in range (3 )] for j in range (2 )]
@@ -384,8 +382,6 @@ def eggs(b):
384
382
self .assertEqual (a , 2 )
385
383
386
384
# TODO RustPython,
387
- # seems to be general nesting problem, see
388
- # test_named_expression_scop_10_rp_scope_prob as reference
389
385
@unittest .expectedFailure
390
386
def test_named_expression_scope_10 (self ):
391
387
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):
394
390
self .assertEqual (b , [1 , 1 ])
395
391
self .assertEqual (a , 1 )
396
392
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
-
414
393
def test_named_expression_scope_11 (self ):
415
394
res = [j := i for i in range (5 )]
416
395
You can’t perform that action at this time.
0 commit comments