diff --git a/pandas/io/tests/test_common.py b/pandas/io/tests/test_common.py index 5740944558a5d..0acf3244fe8fa 100644 --- a/pandas/io/tests/test_common.py +++ b/pandas/io/tests/test_common.py @@ -138,6 +138,6 @@ def test_next(self): for line in lines: next_line = next(wrapper) - self.assertEqual(next_line, line) + self.assertEqual(next_line.strip(), line.strip()) self.assertRaises(StopIteration, next, wrapper)