mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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.
This commit is contained in:
parent
864b63c33f
commit
8fafc74d45
2 changed files with 2 additions and 2 deletions
|
|
@ -1697,7 +1697,7 @@ Methods and their defaults:
|
|||
* ``__ge__``: NotImplemented
|
||||
* ``__int__``: 1
|
||||
* ``__contains__``: False
|
||||
* ``__len__``: 1
|
||||
* ``__len__``: 0
|
||||
* ``__iter__``: iter([])
|
||||
* ``__exit__``: False
|
||||
* ``__complex__``: 1j
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue