cpython/Lib/unittest
Chris Withers db5e86adbc
Get mock coverage back to 100% (GH-18228)
* 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.
2020-01-29 16:24:54 +00:00
..
test Get mock coverage back to 100% (GH-18228) 2020-01-29 16:24:54 +00:00
__init__.py bpo-32972: Async test case (GH-13386) 2019-05-29 02:33:59 -07:00
__main__.py
async_case.py bpo-36373: Fix deprecation warnings (GH-15889) 2019-09-11 01:20:24 -07:00
case.py Remove binding of captured exceptions when not used to reduce the chances of creating cycles (GH-17246) 2019-11-19 21:34:03 +00:00
loader.py
main.py
mock.py Get mock coverage back to 100% (GH-18228) 2020-01-29 16:24:54 +00:00
result.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
runner.py
signals.py
suite.py
util.py