mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
collections.abc.tests: Remove some unnecessary code.
This commit is contained in:
parent
aded55c6e3
commit
08e5300afc
1 changed files with 4 additions and 7 deletions
|
@ -503,13 +503,10 @@ class TestOneTrickPonyABCs(ABCTestCase):
|
|||
def close(self):
|
||||
pass
|
||||
Coroutine.register(CoroLike)
|
||||
try:
|
||||
self.assertTrue(isinstance(CoroLike(), Awaitable))
|
||||
self.assertTrue(issubclass(CoroLike, Awaitable))
|
||||
CoroLike = None
|
||||
finally:
|
||||
support.gc_collect() # Kill CoroLike to clean-up ABCMeta cache
|
||||
|
||||
self.assertTrue(isinstance(CoroLike(), Awaitable))
|
||||
self.assertTrue(issubclass(CoroLike, Awaitable))
|
||||
CoroLike = None
|
||||
support.gc_collect() # Kill CoroLike to clean-up ABCMeta cache
|
||||
|
||||
def test_Coroutine(self):
|
||||
def gen():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue