summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-04-11 09:23:25 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-04-11 09:23:25 (GMT)
commit8e72f503b16e13ac223cebb99e0c8b76251cdc66 (patch)
treefd6497a7d13b24e559bcff42a2ccb823786d2a44 /Doc/library/unittest.mock.rst
parent59865e7fe158bcedc0c2b6252593650b018cf738 (diff)
parent8fafc74d45d2f6eba034ca0ff450adf12610ff18 (diff)
downloadcpython-8e72f503b16e13ac223cebb99e0c8b76251cdc66.zip
cpython-8e72f503b16e13ac223cebb99e0c8b76251cdc66.tar.gz
cpython-8e72f503b16e13ac223cebb99e0c8b76251cdc66.tar.bz2
Fix typos in mock and exceptions docs
The default value of __len__ is 0, not 1: >>> from unittest.mock import MagicMock >>> mock = MagicMock() >>> len(mock) 0 Reported by Alex on docs@p.o. Remove the remaining VMSError reference. VMS support is gone.
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r--Doc/library/unittest.mock.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index c4dc4ed..2073f0f 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1725,7 +1725,7 @@ Methods and their defaults:
* ``__ge__``: NotImplemented
* ``__int__``: 1
* ``__contains__``: False
-* ``__len__``: 1
+* ``__len__``: 0
* ``__iter__``: iter([])
* ``__exit__``: False
* ``__complex__``: 1j