File tree 1 file changed +0
-26
lines changed
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -1042,7 +1042,6 @@ def test_basic(self):
1042
1042
1043
1043
1044
1044
class TestFuncFormatter :
1045
- < << << << HEAD
1046
1045
tests = [("function, 1 input" ,
1047
1046
(lambda x : f"{ x } !" , [2 ], "2!" )),
1048
1047
("function 2 inputs" ,
@@ -1067,31 +1066,6 @@ def test_other_builtins(self):
1067
1066
with pytest .raises (UserWarning , match = r'max is not' ):
1068
1067
mticker .FuncFormatter (max )
1069
1068
1070
- == == == =
1071
- def test_input_x_pos (self ):
1072
- def func (x , pos ):
1073
- return f"{ x } +{ pos } "
1074
- funcform = mticker .FuncFormatter (func )
1075
- assert "1+2" == funcform (1 , 2 )
1076
-
1077
- def text_input_x (self ):
1078
- def func (x ):
1079
- f"hello { x } "
1080
- funcform = mticker .FuncFormatter (func )
1081
- assert "hello 0" == funcform (0 )
1082
-
1083
- def test_error (self ):
1084
- with pytest .raises (TypeError , match = r"FuncFormatter*" ):
1085
- def func (x , y , z ):
1086
- " " .join ([x , y , z ])
1087
- funcform = mticker .FuncFormatter (func )
1088
- funcform (1 , 2 , 3 )
1089
-
1090
- def test_built_in (self ):
1091
- funcform = mticker .FuncFormatter ("{} hi!" .format )
1092
- assert "42 hi!" == funcform (42 )
1093
- >> >> >> > 103314 bfb ... flake errors
1094
-
1095
1069
1096
1070
class TestStrMethodFormatter :
1097
1071
test_data = [
You can’t perform that action at this time.
0 commit comments