/usr/lib/python3/dist-packages/zope/interface/tests/__init__.py is in python3-zope.interface 4.3.2-1build2.
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 | import os
import unittest
def additional_tests():
suites = unittest.TestSuite()
for file in os.listdir(os.path.dirname(__file__)):
if file.endswith('.py') and file!='__init__.py':
name = os.path.splitext(file)[0]
module = __import__('.'.join((__name__, name)), globals(),
locals(), [name])
if hasattr(module, 'test_suite'):
suites.addTests(module.test_suite())
return suites
|