From 22feeb88b473b288950cdb2f6c5d28692274b5f9 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Wed, 24 Jan 2018 11:31:01 -0500 Subject: 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 --- Lib/test/test_asyncio/test_futures.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/test/test_asyncio/test_futures.py') 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 @@ -175,10 +175,6 @@ class BaseFutureTests: with self.assertRaises((RuntimeError, AttributeError)): 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) -- cgit v1.2.1