summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorXtreak <tir.karthi@gmail.com>2019-05-29 07:02:26 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-29 07:02:25 (GMT)
commit0ae022c6a47abffce22ec185552e319b7b93dbf4 (patch)
treeee57f6cae38d05d301422448561ba679fa033390 /Doc
parent744c08a9c75a1a53b7a6521fcee3e7c513919ff9 (diff)
downloadcpython-0ae022c6a47abffce22ec185552e319b7b93dbf4.zip
cpython-0ae022c6a47abffce22ec185552e319b7b93dbf4.tar.gz
cpython-0ae022c6a47abffce22ec185552e319b7b93dbf4.tar.bz2
bpo-37075: Fix string concatenation in assert_has_awaits error message (GH-13616)
* Fix the implicit string concatenation in `assert_has_awaits` error message. * Use "await" instead of "call" in `assert_awaited_with` error message. https://bugs.python.org/issue37075
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.mock.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index da6cdfe..46e8ef3 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1954,7 +1954,7 @@ The full list of supported magic methods is:
* Container methods: ``__getitem__``, ``__setitem__``, ``__delitem__``,
``__contains__``, ``__len__``, ``__iter__``, ``__reversed__``
and ``__missing__``
-* Context manager: ``__enter__``, ``__exit__``, ``__aenter`` and ``__aexit__``
+* Context manager: ``__enter__``, ``__exit__``, ``__aenter__`` and ``__aexit__``
* Unary numeric methods: ``__neg__``, ``__pos__`` and ``__invert__``
* The numeric methods (including right hand and in-place variants):
``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__div__``, ``__truediv__``,
@@ -2036,6 +2036,7 @@ Methods and their defaults:
* ``__len__``: 0
* ``__iter__``: iter([])
* ``__exit__``: False
+* ``__aexit__``: False
* ``__complex__``: 1j
* ``__float__``: 1.0
* ``__bool__``: True