Skip to content

Commit

Permalink
fixing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
realead committed Jan 12, 2022
1 parent 89f9c47 commit bfe8a42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pandas/tests/indexes/interval/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_frame_repr(self):
Series,
(
"(0.0, 1.0] a\n"
"NaN b\n"
"None b\n"
"(2.0, 3.0] c\n"
"dtype: object"
),
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/formats/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ def test_east_asian_unicode_series(self):
# object dtype, shorter than unicode repr
s = Series([1, 22, 3333, 44444], index=[1, "AB", np.nan, "あああ"])
expected = (
"1 1\nAB 22\nNaN 3333\nあああ 44444\ndtype: int64"
"1 1\nAB 22\nnan 3333\nあああ 44444\ndtype: int64"
)
assert repr(s) == expected

Expand Down Expand Up @@ -2356,7 +2356,7 @@ def test_east_asian_unicode_series(self):
# object dtype, shorter than unicode repr
s = Series([1, 22, 3333, 44444], index=[1, "AB", np.nan, "あああ"])
expected = (
"1 1\nAB 22\nNaN 3333\n"
"1 1\nAB 22\nnan 3333\n"
"あああ 44444\ndtype: int64"
)
assert repr(s) == expected
Expand Down

0 comments on commit bfe8a42

Please sign in to comment.