This file is indexed.

/usr/lib/python2.7/dist-packages/qtpy/tests/test_qdesktopservice_split.py is in python-qtpy 1.3.1-1build1.

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
28
from __future__ import absolute_import

import pytest
from qtpy import PYSIDE2

"""Test QDesktopServices split in Qt5."""

@pytest.mark.skipif(PYSIDE2, reason="It fails on PySide2")
def test_qstandarpath():
    """Test the qtpy.QStandardPaths namespace"""
    from qtpy.QtCore import QStandardPaths

    assert QStandardPaths.StandardLocation is not None

    # Attributes from QDesktopServices shouldn't be in QStandardPaths
    with pytest.raises(AttributeError) as excinfo:
        QStandardPaths.setUrlHandler

@pytest.mark.skipif(PYSIDE2, reason="It fails on PySide2")
def test_qdesktopservice():
    """Test the qtpy.QDesktopServices namespace"""
    from qtpy.QtGui import QDesktopServices

    assert QDesktopServices.setUrlHandler is not None

    # Attributes from QStandardPaths shouldn't be in QDesktopServices
    with pytest.raises(AttributeError) as excinfo:
        QDesktopServices.StandardLocation