@@ -730,22 +730,22 @@ def test_nested_unpack(self):
730
730
self .t ("[a+b+c for a, (b, c) in ((1,(1,1)),(3,(2,2)))]" , [3 , 7 ])
731
731
732
732
def test_dictcomp_basic (self ):
733
- self .t ("{a:a + 1 for a in [1,2,3]}" , {1 :2 , 2 :3 , 3 :4 })
733
+ self .t ("{a:a + 1 for a in [1,2,3]}" , {1 : 2 , 2 : 3 , 3 : 4 })
734
734
735
735
def test_dictcomp_with_self_reference (self ):
736
- self .t ("{a:a + a for a in [1,2,3]}" , {1 :2 , 2 :4 , 3 :6 })
736
+ self .t ("{a:a + a for a in [1,2,3]}" , {1 : 2 , 2 : 4 , 3 : 6 })
737
737
738
738
def test_dictcomp_with_if (self ):
739
- self .t ("{a:a for a in [1,2,3,4,5] if a <= 3}" , {1 :1 , 2 :2 , 3 :3 })
739
+ self .t ("{a:a for a in [1,2,3,4,5] if a <= 3}" , {1 : 1 , 2 : 2 , 3 : 3 })
740
740
741
741
def test_dictcomp_with_multiple_if (self ):
742
- self .t ("{a:a for a in [1,2,3,4,5] if a <= 3 and a > 1 }" , {2 :2 , 3 :3 })
742
+ self .t ("{a:a for a in [1,2,3,4,5] if a <= 3 and a > 1 }" , {2 : 2 , 3 : 3 })
743
743
744
744
def test_dictcomp_unpack (self ):
745
- self .t ("{a:a+b for a,b in ((1,2),(3,4))}" , {1 :3 , 3 :7 })
745
+ self .t ("{a:a+b for a,b in ((1,2),(3,4))}" , {1 : 3 , 3 : 7 })
746
746
747
747
def test_dictcomp_nested_unpack (self ):
748
- self .t ("{a:a+b+c for a, (b, c) in ((1,(1,1)),(3,(2,2)))}" , {1 :3 , 3 :7 })
748
+ self .t ("{a:a+b+c for a, (b, c) in ((1,(1,1)),(3,(2,2)))}" , {1 : 3 , 3 : 7 })
749
749
750
750
def test_other_places (self ):
751
751
self .s .functions = {"sum" : sum }
0 commit comments