summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/testmock/testmock.py
diff options
context:
space:
mode:
authorLisa Roach <lisaroach14@gmail.com>2019-09-27 22:44:34 (GMT)
committerGitHub <noreply@github.com>2019-09-27 22:44:34 (GMT)
commit52bdd414ed9da7c62c312c542803753986a0040a (patch)
tree249181d65faf57fb5ac63384526492cd63c48cbb /Lib/unittest/test/testmock/testmock.py
parent6447b9f9bd27e1f6b04cef674dd3a7ab27bf4f28 (diff)
downloadcpython-52bdd414ed9da7c62c312c542803753986a0040a.zip
cpython-52bdd414ed9da7c62c312c542803753986a0040a.tar.gz
cpython-52bdd414ed9da7c62c312c542803753986a0040a.tar.bz2
[3.8] bpo-38136: Updates await_count and call_count to be different things (GH-16192) (GH-16431)
Diffstat (limited to 'Lib/unittest/test/testmock/testmock.py')
-rw-r--r--Lib/unittest/test/testmock/testmock.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/unittest/test/testmock/testmock.py b/Lib/unittest/test/testmock/testmock.py
index 817c548..6dc2725 100644
--- a/Lib/unittest/test/testmock/testmock.py
+++ b/Lib/unittest/test/testmock/testmock.py
@@ -842,6 +842,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__
@@ -2043,7 +2044,7 @@ class MockTest(unittest.TestCase):
)
mocks = [
- Mock, MagicMock, NonCallableMock, NonCallableMagicMock
+ Mock, MagicMock, NonCallableMock, NonCallableMagicMock, AsyncMock
]
for mock in mocks: