Skip to content

test_info_repr failing locally #21746

Closed
@jbrockmendel

Description

@jbrockmendel

OSX py2.7

def test_info_repr(self):
        max_rows = 60
        max_cols = 20
        # Long
        h, w = max_rows + 1, max_cols - 1
        df = DataFrame({k: np.arange(1, 1 + h) for k in np.arange(w)})
        assert has_vertically_truncated_repr(df)
        with option_context('display.large_repr', 'info'):
            assert has_info_repr(df)
    
        # Wide
        h, w = max_rows - 1, max_cols + 1
        df = DataFrame({k: np.arange(1, 1 + h) for k in np.arange(w)})
>       assert has_horizontally_truncated_repr(df)
E       assert False
E        +  where False = has_horizontally_truncated_repr(    0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16  17  18... 59  59  59  59  59  59  59  59  59  59  59  59  59  59  59  59  59  59  59  59)

pandas/tests/io/formats/test_format.py:1601: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    Output-Formatting__repr__ of pandas objects, to_stringTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions