mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
* use the `: pass` and `: yield` patterns for code that isn't expected to ever be executed. * The _Call items passed to _AnyComparer are only ever of length two, so assert instead of if/else * fix typo * Fix bug, where stop-without-start patching dict blows up with `TypeError: 'NoneType' object is not iterable`, highlighted by lack of coverage of an except branch. * The fix for bpo-37972 means _Call.count and _Call.index are no longer needed. * add coverage for calling next() on a mock_open with readline.return_value set. * __aiter__ is defined on the Mock so the one on _AsyncIterator is never called. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| support.py | ||
| testasync.py | ||
| testcallable.py | ||
| testhelpers.py | ||
| testmagicmethods.py | ||
| testmock.py | ||
| testpatch.py | ||
| testsealable.py | ||
| testsentinel.py | ||
| testwith.py | ||