diff options
author | Lisa Roach <lisaroach14@gmail.com> | 2019-09-30 04:01:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 04:01:28 (GMT) |
commit | 25e115ec00b5f75e3589c9f21013c47c21e1753f (patch) | |
tree | 61ea44dac1f39cc313f562f6ef82dd00c33f3216 /Lib/unittest/test/testmock | |
parent | fb4ae152a9930f0e00cae8b2807f534058cf341a (diff) | |
download | cpython-25e115ec00b5f75e3589c9f21013c47c21e1753f.zip cpython-25e115ec00b5f75e3589c9f21013c47c21e1753f.tar.gz cpython-25e115ec00b5f75e3589c9f21013c47c21e1753f.tar.bz2 |
bpo-38161: Removes _AwaitEvent from AsyncMock. (GH-16443)
Diffstat (limited to 'Lib/unittest/test/testmock')
-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 624fadc..5a9e93e 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()) @@ -212,7 +211,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 |