Kaydet (Commit) 08e5300a authored tarafından Yury Selivanov's avatar Yury Selivanov

collections.abc.tests: Remove some unnecessary code.

üst aded55c6
...@@ -503,14 +503,11 @@ class TestOneTrickPonyABCs(ABCTestCase): ...@@ -503,14 +503,11 @@ 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
finally:
support.gc_collect() # Kill CoroLike to clean-up ABCMeta cache support.gc_collect() # Kill CoroLike to clean-up ABCMeta cache
def test_Coroutine(self): def test_Coroutine(self):
def gen(): def gen():
yield yield
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment