diff options
author | Yury Selivanov <yury@magic.io> | 2018-01-24 11:31:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 11:31:01 -0500 |
commit | 22feeb88b473b288950cdb2f6c5d28692274b5f9 (patch) | |
tree | 805ea2b2b684bb331f1205f1347b5b60e1dfd2db /Lib/test/test_asyncio/test_futures.py | |
parent | 8ded5b803705328749622256701b3f08a9d6c5ab (diff) | |
download | cpython-git-22feeb88b473b288950cdb2f6c5d28692274b5f9.tar.gz |
bpo-32643: Drop support for a few private Task and Future APIs. (#5293)
Specifically, it's not possible to subclass Task/Future classes
and override the following methods:
* Future._schedule_callbacks
* Task._step
* Task._wakeup
Diffstat (limited to 'Lib/test/test_asyncio/test_futures.py')
-rw-r--r-- | Lib/test/test_asyncio/test_futures.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index 37f4c6562f..8c837ad6b6 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -176,10 +176,6 @@ class BaseFutureTests: fut.remove_done_callback(lambda f: None) fut = self.cls.__new__(self.cls, loop=self.loop) - with self.assertRaises((RuntimeError, AttributeError)): - fut._schedule_callbacks() - - fut = self.cls.__new__(self.cls, loop=self.loop) try: repr(fut) except (RuntimeError, AttributeError): |