This file is indexed.

/usr/lib/python3/dist-packages/pyutilib/th/tests/test_pyunit1.py is in python3-pyutilib 5.3.5-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
import os
from os.path import abspath, dirname
currdir = dirname(abspath(__file__))+os.sep

import pyutilib.th as unittest

tmp = os.environ.get('PYUTILIB_UNITTEST_CATEGORY','')
os.environ['PYUTILIB_UNITTEST_CATEGORY'] = '_bar_'

#@unittest.category('_foo_')
class Tester3(unittest.TestCase):

    @unittest.category('_bar_ ',' _rab_')
    def test_pass(self):
        print("Executing Tester3.test_pass")

    @unittest.category('_oof_' ,' _rab_')
    def test_fail(self):
        self.fail("test_fail will always fail")

Tester3 = unittest.category('foo')(Tester3)

os.environ['PYUTILIB_UNITTEST_CATEGORY'] = tmp

if __name__ == "__main__":
    unittest.main()