@@ -1446,7 +1446,7 @@ def test_line__invalid_start_pos_formats(self):
1446
1446
(2 , 1 , 0 ), # Too many coords.
1447
1447
(2 , "1" ), # Wrong type.
1448
1448
{2 , 1 }, # Wrong type.
1449
- dict ((( 2 , 1 ),)) ,
1449
+ { 2 : 1 } ,
1450
1450
) # Wrong type.
1451
1451
1452
1452
for start_pos in start_pos_fmts :
@@ -1470,7 +1470,7 @@ def test_line__invalid_end_pos_formats(self):
1470
1470
(2 , 1 , 0 ), # Too many coords.
1471
1471
(2 , "1" ), # Wrong type.
1472
1472
{2 , 1 }, # Wrong type.
1473
- dict ((( 2 , 1 ),)) ,
1473
+ { 2 : 1 } ,
1474
1474
) # Wrong type.
1475
1475
1476
1476
for end_pos in end_pos_fmts :
@@ -2122,9 +2122,9 @@ def test_lines__invalid_points_formats(self):
2122
2122
((1 , 1 ), (2 , 2 , 2 )), # Too many coords.
2123
2123
((1 , 1 ), (2 , "2" )), # Wrong type.
2124
2124
((1 , 1 ), {2 , 3 }), # Wrong type.
2125
- ((1 , 1 ), dict ((( 2 , 2 ), ( 3 , 3 ))) ), # Wrong type.
2125
+ ((1 , 1 ), { 2 : 2 , 3 : 3 } ), # Wrong type.
2126
2126
{(1 , 1 ), (1 , 2 )}, # Wrong type.
2127
- dict ((( 1 , 1 ), ( 4 , 4 ))) ,
2127
+ { 1 : 1 , 4 : 4 } ,
2128
2128
) # Wrong type.
2129
2129
2130
2130
for points in points_fmts :
@@ -2715,7 +2715,7 @@ def test_aaline__invalid_start_pos_formats(self):
2715
2715
(2 , 1 , 0 ), # Too many coords.
2716
2716
(2 , "1" ), # Wrong type.
2717
2717
{2 , 1 }, # Wrong type.
2718
- dict ((( 2 , 1 ),)) ,
2718
+ { 2 : 1 } ,
2719
2719
) # Wrong type.
2720
2720
2721
2721
for start_pos in start_pos_fmts :
@@ -2738,7 +2738,7 @@ def test_aaline__invalid_end_pos_formats(self):
2738
2738
(2 , 1 , 0 ), # Too many coords.
2739
2739
(2 , "1" ), # Wrong type.
2740
2740
{2 , 1 }, # Wrong type.
2741
- dict ((( 2 , 1 ),)) ,
2741
+ { 2 : 1 } ,
2742
2742
) # Wrong type.
2743
2743
2744
2744
for end_pos in end_pos_fmts :
@@ -3441,9 +3441,9 @@ def test_aalines__invalid_points_formats(self):
3441
3441
((1 , 1 ), (2 , 2 , 2 )), # Too many coords.
3442
3442
((1 , 1 ), (2 , "2" )), # Wrong type.
3443
3443
((1 , 1 ), {2 , 3 }), # Wrong type.
3444
- ((1 , 1 ), dict ((( 2 , 2 ), ( 3 , 3 ))) ), # Wrong type.
3444
+ ((1 , 1 ), { 2 : 2 , 3 : 3 } ), # Wrong type.
3445
3445
{(1 , 1 ), (1 , 2 )}, # Wrong type.
3446
- dict ((( 1 , 1 ), ( 4 , 4 ))) ,
3446
+ { 1 : 1 , 4 : 4 } ,
3447
3447
) # Wrong type.
3448
3448
3449
3449
for points in points_fmts :
@@ -3952,9 +3952,9 @@ def test_polygon__invalid_points_formats(self):
3952
3952
((1 , 1 ), (2 , 1 ), (2 , 2 , 2 )), # Too many coords.
3953
3953
((1 , 1 ), (2 , 1 ), (2 , "2" )), # Wrong type.
3954
3954
((1 , 1 ), (2 , 1 ), {2 , 3 }), # Wrong type.
3955
- ((1 , 1 ), (2 , 1 ), dict ((( 2 , 2 ), ( 3 , 3 ))) ), # Wrong type.
3955
+ ((1 , 1 ), (2 , 1 ), { 2 : 2 , 3 : 3 } ), # Wrong type.
3956
3956
{(1 , 1 ), (2 , 1 ), (2 , 2 ), (1 , 2 )}, # Wrong type.
3957
- dict ((( 1 , 1 ), ( 2 , 2 ), ( 3 , 3 ), ( 4 , 4 ))) ,
3957
+ { 1 : 1 , 2 : 2 , 3 : 3 , 4 : 4 } ,
3958
3958
) # Wrong type.
3959
3959
3960
3960
for points in points_fmts :
@@ -3973,7 +3973,7 @@ def test_polygon__invalid_points_values(self):
3973
3973
}
3974
3974
3975
3975
points_fmts = (
3976
- tuple (), # Too few points.
3976
+ (), # Too few points.
3977
3977
((1 , 1 ),), # Too few points.
3978
3978
((1 , 1 ), (2 , 1 )),
3979
3979
) # Too few points.
0 commit comments