File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1068,9 +1068,10 @@ def test_other_builtins(self):
1068
1068
1069
1069
def test_update (self ):
1070
1070
formatter = mticker .FuncFormatter (lambda x , pos : f"{ x } +{ pos } " )
1071
- assert "1+2" == formatter (1 ,2 )
1071
+ assert "1+2" == formatter (1 , 2 )
1072
1072
with pytest .raises (TypeError , match = '3 arguments' ):
1073
- formatter .func = lambda x , pos , error : "!"
1073
+ formatter .func = lambda x , pos , error : "!"
1074
+
1074
1075
1075
1076
class TestStrMethodFormatter :
1076
1077
test_data = [
Original file line number Diff line number Diff line change @@ -420,9 +420,7 @@ def func(self, func):
420
420
if self ._nargs not in [1 , 2 ]:
421
421
raise TypeError (f"{ func .__name__ } takes { self ._nargs } arguments. "
422
422
"FuncFormatter functions take at most 2: "
423
- "x (required), pos (optional)." )
424
-
425
-
423
+ "x (required ), pos (optional ).
426
424
427
425
428
426
class FormatStrFormatter (Formatter ):
You can’t perform that action at this time.
0 commit comments