diff options
author | Lisa Roach <lisaroach14@gmail.com> | 2019-09-24 03:49:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 03:49:40 (GMT) |
commit | ef048517755db1f0d211fb6dfc655a8b412cc96f (patch) | |
tree | 20c1dd5ef9c6dbcd529122ed378878954df63ebd /Lib/unittest/test/testmock/testmock.py | |
parent | 6f53d34fb0f944a8c0ee530334c353559ac40f72 (diff) | |
download | cpython-ef048517755db1f0d211fb6dfc655a8b412cc96f.zip cpython-ef048517755db1f0d211fb6dfc655a8b412cc96f.tar.gz cpython-ef048517755db1f0d211fb6dfc655a8b412cc96f.tar.bz2 |
bpo-38136: Updates await_count and call_count to be different things (GH-16192)
Diffstat (limited to 'Lib/unittest/test/testmock/testmock.py')
-rw-r--r-- | Lib/unittest/test/testmock/testmock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/unittest/test/testmock/testmock.py b/Lib/unittest/test/testmock/testmock.py index 2bafa82..ad67f98 100644 --- a/Lib/unittest/test/testmock/testmock.py +++ b/Lib/unittest/test/testmock/testmock.py @@ -850,6 +850,7 @@ class MockTest(unittest.TestCase): def test_setting_call(self): mock = Mock() def __call__(self, a): + self._increment_mock_call(a) return self._mock_call(a) type(mock).__call__ = __call__ @@ -2025,7 +2026,7 @@ class MockTest(unittest.TestCase): ) mocks = [ - Mock, MagicMock, NonCallableMock, NonCallableMagicMock + Mock, MagicMock, NonCallableMock, NonCallableMagicMock, AsyncMock ] for mock in mocks: |