From 5ec89fd6e5d76638227dd80f376bab1ec076c714 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 18 Aug 2021 12:43:59 +0300 Subject: [PATCH] Docs: refer to non-deprecated unittest alias --- doc/en/how-to/assert.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/how-to/assert.rst b/doc/en/how-to/assert.rst index 9507a651e73..895afc02043 100644 --- a/doc/en/how-to/assert.rst +++ b/doc/en/how-to/assert.rst @@ -102,7 +102,7 @@ the actual exception raised. The main attributes of interest are You can pass a ``match`` keyword parameter to the context-manager to test that a regular expression matches on the string representation of an exception -(similar to the ``TestCase.assertRaisesRegexp`` method from ``unittest``): +(similar to the ``TestCase.assertRaisesRegex`` method from ``unittest``): .. code-block:: python