File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ def test_with_a_commas_and_an_underscore_in_format_specifier(self):
514
514
def test_with_an_underscore_and_a_comma_in_format_specifier (self ):
515
515
error_msg = re .escape ("Cannot specify both ',' and '_'." )
516
516
with self .assertRaisesRegex (ValueError , error_msg ):
517
- '{:,_ }' .format (1 )
517
+ '{:_, }' .format (1 )
518
518
519
519
if __name__ == "__main__" :
520
520
unittest .main ()
Original file line number Diff line number Diff line change @@ -1217,7 +1217,7 @@ def test_with_a_commas_and_an_underscore_in_format_specifier(self):
1217
1217
def test_with_an_underscore_and_a_comma_in_format_specifier (self ):
1218
1218
error_msg = re .escape ("Cannot specify both ',' and '_'." )
1219
1219
with self .assertRaisesRegex (ValueError , error_msg ):
1220
- f'{ 1 :,_ } '
1220
+ f'{ 1 :_, } '
1221
1221
1222
1222
if __name__ == '__main__' :
1223
1223
unittest .main ()
You can’t perform that action at this time.
0 commit comments