Skip to content

Commit c91dd85

Browse files
committed
Deprecate zope.testing.doctestcase in favour of plain doctest.
Points users to doctest.DocTestSuite/DocFileSuite as the migration path.
1 parent ef81ce3 commit c91dd85

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
- Add support for Python 3.15.
99

10+
- Deprecate ``zope.testing.doctestcase`` in favour of plain ``doctest``
11+
(e.g. ``doctest.DocTestSuite`` or ``doctest.DocFileSuite``).
12+
1013
- Move package metadata from setup.py to pyproject.toml.
1114

1215

src/zope/testing/doctestcase.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
import sys
1010
import types
1111
import unittest
12+
import warnings
13+
14+
15+
warnings.warn(
16+
'zope.testing.doctestcase is deprecated and will be removed in a '
17+
'future release. Use plain doctest (e.g. doctest.DocTestSuite or '
18+
'doctest.DocFileSuite) instead.',
19+
DeprecationWarning,
20+
stacklevel=2)
1221

1322

1423
__all__ = [

0 commit comments

Comments
 (0)