/usr/lib/python3/dist-packages/pyutilib/th/tests/test_pyunit2.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 | 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'] = '_foo_'
#@unittest.category('_oof_')
class Tester4(unittest.TestCase):
def test_pass(self):
self.fail("Should not execute this suite")
Tester4 = unittest.category('_oof_')(Tester4)
os.environ['PYUTILIB_UNITTEST_CATEGORY']=tmp
if __name__ == "__main__":
unittest.main()
|