This file is indexed.

/usr/lib/python2.7/dist-packages/openpyxl/utils/tests/test_dataframe.py is in python-openpyxl 2.4.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from __future__ import absolute_import
# Copyright (c) 2010-2017 openpyxl

import pytest
from math import isnan


@pytest.mark.pandas_required
def test_dataframe():
    import numpy
    from pandas import Timestamp
    from pandas.util import testing
    from pandas.tslib import NaTType

    from ..dataframe import dataframe_to_rows
    df = testing.makeMixedDataFrame()
    df.iloc[0] = numpy.nan

    rows = tuple(dataframe_to_rows(df))
    assert isnan(rows[1][1])
    assert type(rows[1][-1]) == NaTType
    assert rows[2:] == (
        [1, 1.0, 1.0, 'foo2', Timestamp('2009-01-02 00:00:00')],
        [2, 2.0, 0.0, 'foo3', Timestamp('2009-01-05 00:00:00')],
        [3, 3.0, 1.0, 'foo4', Timestamp('2009-01-06 00:00:00')],
        [4, 4.0, 0.0, 'foo5', Timestamp('2009-01-07 00:00:00')],
        )