diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-30 04:23:33 (GMT) |
---|---|---|
committer | Lisa Roach <lisaroach14@gmail.com> | 2019-09-30 04:23:33 (GMT) |
commit | 36e7e4aabb662e86e9dace1a6447492f45868654 (patch) | |
tree | 17d7463e7ca04101a18d24babdcf0e861f1b23eb /Lib/unittest/test/testmock/testasync.py | |
parent | b76ab352405df105c2d459fc66ef8dc98e47b37c (diff) | |
download | cpython-36e7e4aabb662e86e9dace1a6447492f45868654.zip cpython-36e7e4aabb662e86e9dace1a6447492f45868654.tar.gz cpython-36e7e4aabb662e86e9dace1a6447492f45868654.tar.bz2 |
bpo-38161: Removes _AwaitEvent from AsyncMock. (GH-16443) (GH-16481)
Diffstat (limited to 'Lib/unittest/test/testmock/testasync.py')
-rw-r--r-- | Lib/unittest/test/testmock/testasync.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/unittest/test/testmock/testasync.py b/Lib/unittest/test/testmock/testasync.py index df5ac5e..ed8aefc 100644 --- a/Lib/unittest/test/testmock/testasync.py +++ b/Lib/unittest/test/testmock/testasync.py @@ -4,7 +4,7 @@ import re import unittest from unittest.mock import (ANY, call, AsyncMock, patch, MagicMock, - create_autospec, _AwaitEvent, sentinel, _CallList) + create_autospec, sentinel, _CallList) def tearDownModule(): @@ -178,7 +178,6 @@ class AsyncAutospecTest(unittest.TestCase): self.assertEqual(spec.await_count, 0) self.assertIsNone(spec.await_args) self.assertEqual(spec.await_args_list, []) - self.assertIsInstance(spec.awaited, _AwaitEvent) spec.assert_not_awaited() asyncio.run(main()) @@ -208,7 +207,6 @@ class AsyncAutospecTest(unittest.TestCase): self.assertEqual(mock_method.await_count, 0) self.assertEqual(mock_method.await_args_list, []) self.assertIsNone(mock_method.await_args) - self.assertIsInstance(mock_method.awaited, _AwaitEvent) mock_method.assert_not_awaited() await awaitable |