diff --git a/pandas/tests/test_format.py b/pandas/tests/test_format.py index d0c783725f8bb..86627271c8e6a 100644 --- a/pandas/tests/test_format.py +++ b/pandas/tests/test_format.py @@ -181,7 +181,7 @@ def test_repr_should_return_str(self): u("\u03c6")] cols = [u("\u03c8")] df = DataFrame(data, columns=cols, index=index1) - self.assertTrue(type(df.__repr__() == str)) # both py2 / 3 + self.assertTrue(type(df.__repr__()) == str) # both py2 / 3 def test_repr_no_backslash(self): with option_context('mode.sim_interactive', True):