zope.testing
Zope testing helpers
Decision gist · record as of 2026-08-14
Yes. zope.testing is actively maintained, has zero known vulnerabilities, requires no external dependencies, and supports current Python versions (3.10+). It is worth installing if you use doctests or need any of its specialized testing utilities (form parsing, logging verification, output normalization). If you only use unittest or pytest with standard patterns, you may not need it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with no runtime dependencies.
- Actively maintained with recent releases; latest version 6.2 added Python 3.15 support and moved metadata to pyproject.toml.
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License 2.1), a permissive open-source license with no notable restrictions for most use cases.
last release 2026-07-03 (42 days) · last repo commit 2026-07-03 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 256,994 downloads/mo, #8,452 on PyPI
Alternatives
Verify before relying
pip install zope.testing
from zope.testing import setupstack
from zope.testing.renormalizing import OutputChecker
# Use setupstack for doctest setup/teardown automation
# Use OutputChecker for regex-based output normalization in tests- Whether formparser HTML extraction works with modern HTML5 parsers or only legacy HTML.
- Performance characteristics when used with large test suites or complex doctest files.
- Compatibility with test runners other than nose (e.g., pytest, unittest discovery).
What it is and what it does
zope.testing is a collection of testing utilities built around doctest and unittest workflows. It provides helpers for common testing patterns: cleanup mixins for tests that modify global state, HTML form parsing for functional tests, logging output verification, and setup/teardown automation via setupstack. The package also includes output normalization via regex patterns (useful for doctests with non-deterministic output) and a timing utility for handling race conditions.
The package is designed primarily for doctest-heavy projects and Zope framework users, though its individual modules (like renormalizing and setupstack) can be used standalone. It has no runtime dependencies, making it lightweight to add to a test suite. Recent versions have deprecated doctestcase in favor of Python's built-in doctest module, signaling a shift toward standard library patterns.
Use it for
- Verify logging output in unit tests using loggingsupport handlers.
- Extract and validate form data from HTML responses in functional tests with formparser.
- Normalize doctest output with regex patterns to handle timestamps or variable data.
- Automate setup and teardown in doctests using setupstack to avoid global state pollution.
- Handle timing-dependent test failures with the wait utility for non-deterministic operations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
zope.testing is actively maintained, has zero known vulnerabilities, requires no external dependencies, and supports current Python versions (3.10+). It is worth installing if you use doctests or need any of its specialized testing utilities (form parsing, logging verification, output normalization). If you only use unittest or pytest with standard patterns, you may not need it.
Install
zope-testing on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent releases; latest version 6.2 added Python 3.15 support and moved metadata to pyproject.toml.
Requires Python 3.10 or later.
License in practice
Licensed under ZPL-2.1 (Zope Public License 2.1), a permissive open-source license with no notable restrictions for most use cases.
Quickstart
pip install zope.testing
from zope.testing import setupstack
from zope.testing.renormalizing import OutputChecker
# Use setupstack for doctest setup/teardown automation
# Use OutputChecker for regex-based output normalization in tests
Verify before relying
- Whether formparser HTML extraction works with modern HTML5 parsers or only legacy HTML.
- Performance characteristics when used with large test suites or complex doctest files.
- Compatibility with test runners other than nose (e.g., pytest, unittest discovery).
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 42 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 256,994 / month, #8,452 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: Zope :: 3Framework :: Zope :: 4Framework :: Zope :: 5Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: zope_testing-6.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “doctest utilities”
- zope.testingProvides testing utilities and frameworks for Python, including…
- pytest-doctestplusA pytest plugin that runs doctests in Python docstrings and…
- pytest-cythonA pytest plugin that runs doctests embedded in Cython `.pyx`…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also zope.exceptions · zope.testrunner · zope.deprecation · zope.browser · zope.datetime · zope.testbrowser · zope.viewlet · pytest-doctestplus · zExceptions · xdoctest