mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3.
This commit is contained in:
parent
cebbec9b61
commit
55416e235d
6 changed files with 19 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue