This file is indexed.

/usr/lib/python3/dist-packages/pyutilib/th/tests/test_pyunit.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import os
from os.path import abspath, dirname
currdir = dirname(abspath(__file__))+os.sep

import pyutilib.th as unittest

class Tester(unittest.TestCase):

    def test_pass(self):
        pass

    @unittest.expectedFailure
    def test_fail(self):
        self.fail("test_fail will always fail")

    @unittest.skip("demonstrating skipping")
    def test_skip(self):
        self.fail("test_skip will always be skipped")

    def test_data(self):
        self.recordTestData('foo','bar')

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

    def test_pass(self):
        pass

Tester2 = unittest.category('_foo_')(Tester2)


#
# This class will create a test failure when the
# test category is _ignore_.  This is used to validate
# that tests classes will be skipped if another category
# is specified.
#

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

    def test_fail(self):
        if os.environ.get('PYUTILIB_UNITTEST_CATEGORIES','') == '_ignore_':
            self.fail("test_fail will fail when the _ignore_ category is specified.")

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

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