Skip to content

Commit 5ec89fd

Browse files
committed
Docs: refer to non-deprecated unittest alias
1 parent 720b91d commit 5ec89fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/en/how-to/assert.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ the actual exception raised. The main attributes of interest are
102102

103103
You can pass a ``match`` keyword parameter to the context-manager to test
104104
that a regular expression matches on the string representation of an exception
105-
(similar to the ``TestCase.assertRaisesRegexp`` method from ``unittest``):
105+
(similar to the ``TestCase.assertRaisesRegex`` method from ``unittest``):
106106

107107
.. code-block:: python
108108

0 commit comments

Comments
 (0)