Command Line Usage¶
This package provides a script, zope-testrunner, that’s available when
installed via pip. It can also be used as a Python module with the
-m option.
$ python -m zope.testrunner --help
/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/__init__.py:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
__import__('pkg_resources').declare_namespace(__name__)
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/testrunner/__main__.py", line 19, in <module>
run()
~~~^^
File "/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/testrunner/__init__.py", line 33, in run
failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd,
warnings=warnings)
File "/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/testrunner/__init__.py", line 54, in run_internal
from zope.testrunner.runner import Runner
File "/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/testrunner/runner.py", line 35, in <module>
import zope.testrunner._doctest
File "/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/testrunner/_doctest.py", line 20, in <module>
import zope.testrunner.feature
File "/home/iurt/rpmbuild/BUILD/python-zope-testrunner-7.4-build/zope_testrunner-7.4/src/zope/testrunner/feature.py", line 17, in <module>
import zope.interface
ModuleNotFoundError: No module named 'zope.interface'