Skip to content

Commit 9b09388

Browse files
committed
testing whole output + pep8
1 parent 011891b commit 9b09388

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pandas/tests/series/test_repr.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,18 @@ 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"
267+
"None 2\n"
268+
"nan 3\n"
269+
"NaT 4\n"
270+
"dtype: int64"
271+
)
272+
assert result == expected
270273

271274

272275
class TestCategoricalRepr:

0 commit comments

Comments
 (0)