Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92ed890

Browse files
committed
#18951: merge with 3.3.
2 parents 0cc8685 + 560a778 commit 92ed890

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/unittest.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -892,14 +892,14 @@ Test cases
892892
| :meth:`assertRaises(exc, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | |
893893
| <TestCase.assertRaises>` | | |
894894
+---------------------------------------------------------+--------------------------------------+------------+
895-
| :meth:`assertRaisesRegex(exc, re, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | 3.1 |
896-
| <TestCase.assertRaisesRegex>` | and the message matches *re* | |
895+
| :meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | 3.1 |
896+
| <TestCase.assertRaisesRegex>` | and the message matches regex *r* | |
897897
+---------------------------------------------------------+--------------------------------------+------------+
898898
| :meth:`assertWarns(warn, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* | 3.2 |
899899
| <TestCase.assertWarns>` | | |
900900
+---------------------------------------------------------+--------------------------------------+------------+
901-
| :meth:`assertWarnsRegex(warn, re, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* | 3.2 |
902-
| <TestCase.assertWarnsRegex>` | and the message matches *re* | |
901+
| :meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* | 3.2 |
902+
| <TestCase.assertWarnsRegex>` | and the message matches regex *r* | |
903903
+---------------------------------------------------------+--------------------------------------+------------+
904904

905905
.. method:: assertRaises(exception, callable, *args, **kwds)
@@ -1055,10 +1055,10 @@ Test cases
10551055
| :meth:`assertLessEqual(a, b) | ``a <= b`` | 3.1 |
10561056
| <TestCase.assertLessEqual>` | | |
10571057
+---------------------------------------+--------------------------------+--------------+
1058-
| :meth:`assertRegex(s, re) | ``regex.search(s)`` | 3.1 |
1058+
| :meth:`assertRegex(s, r) | ``r.search(s)`` | 3.1 |
10591059
| <TestCase.assertRegex>` | | |
10601060
+---------------------------------------+--------------------------------+--------------+
1061-
| :meth:`assertNotRegex(s, re) | ``not regex.search(s)`` | 3.2 |
1061+
| :meth:`assertNotRegex(s, r) | ``not r.search(s)`` | 3.2 |
10621062
| <TestCase.assertNotRegex>` | | |
10631063
+---------------------------------------+--------------------------------+--------------+
10641064
| :meth:`assertCountEqual(a, b) | *a* and *b* have the same | 3.2 |

0 commit comments

Comments
 (0)