Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ac31af

Browse files
committedApr 25, 2025··
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)
Please sign in to comment.