summaryrefslogtreecommitdiff
path: root/docs/topics/python3.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/python3.txt')
-rw-r--r--docs/topics/python3.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/topics/python3.txt b/docs/topics/python3.txt
index b44c180d7f..b1f3fa3277 100644
--- a/docs/topics/python3.txt
+++ b/docs/topics/python3.txt
@@ -402,7 +402,13 @@ The version of six bundled with Django includes one extra function:
This replaces ``testcase.assertRaisesRegexp`` on Python 2, and
``testcase.assertRaisesRegex`` on Python 3. ``assertRaisesRegexp`` still
- exists in current Python3 versions, but issues a warning.
+ exists in current Python 3 versions, but issues a warning.
+
+.. function:: assertRegex(testcase, *args, **kwargs)
+
+ This replaces ``testcase.assertRegexpMatches`` on Python 2, and
+ ``testcase.assertRegex`` on Python 3. ``assertRegexpMatches`` still
+ exists in current Python 3 versions, but issues a warning.
In addition to six' defaults moves, Django's version provides ``thread`` as