mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23: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):
|
def close(self):
|
||||||
pass
|
pass
|
||||||
Coroutine.register(CoroLike)
|
Coroutine.register(CoroLike)
|
||||||
try:
|
self.assertTrue(isinstance(CoroLike(), Awaitable))
|
||||||
self.assertTrue(isinstance(CoroLike(), Awaitable))
|
self.assertTrue(issubclass(CoroLike, Awaitable))
|
||||||
self.assertTrue(issubclass(CoroLike, Awaitable))
|
CoroLike = None
|
||||||
CoroLike = None
|
support.gc_collect() # Kill CoroLike to clean-up ABCMeta cache
|
||||||
finally:
|
|
||||||
support.gc_collect() # Kill CoroLike to clean-up ABCMeta cache
|
|
||||||
|
|
||||||
|
|
||||||
def test_Coroutine(self):
|
def test_Coroutine(self):
|
||||||
def gen():
|
def gen():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue