Skip to content

Commit 3627c07

Browse files
committed
testing whole output + pep8
1 parent 5c619c9 commit 3627c07

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/tests/series/test_repr.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,14 @@ def test_float_repr(self):
258258
expected = "0 1.0\ndtype: object"
259259
assert repr(ser) == expected
260260

261-
262261
def test_different_null_objects(self):
263262
# GH#45263
264-
ser = pd.Series([1,2,3,4], [True, None, np.nan, pd.NaT])
263+
ser = pd.Series([1, 2, 3, 4], [True, None, np.nan, pd.NaT])
265264
result = repr(ser)
266-
assert "NaT" in result
267-
assert "nan" in result
268-
assert "None" in result
269-
265+
expected = (
266+
"True 1\n" "None 2\n" "nan 3\n" "NaT 4\n" "dtype: int64"
267+
)
268+
assert result == expected
270269

271270

272271
class TestCategoricalRepr:

0 commit comments

Comments
 (0)