Skip to content

Commit 9ac31af

Browse files
GH730 Fix test
1 parent 8349816 commit 9ac31af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test_frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ def _formatter(x) -> str:
17181718
),
17191719
str,
17201720
)
1721-
check(assert_type(df.to_string(float_format=".2%"), str), str)
1721+
check(assert_type(df.to_string(float_format="%.2f"), str), str)
17221722

17231723

17241724
def test_types_to_html() -> None:

tests/test_series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,8 @@ def _formatter(x) -> str:
29532953
),
29542954
str,
29552955
)
2956-
check(assert_type(sr.to_string(float_format=".2%"), str), str)
2956+
check(assert_type(sr.to_string(float_format="%.2f"), str), str)
2957+
check(assert_type(sr.to_string(float_format="%.2f"), str), str)
29572958

29582959

29592960
def test_types_mask() -> None:

0 commit comments

Comments
 (0)