collections.abc.tests: Remove some unnecessary code.

This commit is contained in:
Yury Selivanov 2015-05-13 23:57:59 -04:00
parent aded55c6e3
commit 08e5300afc
1 changed files with 4 additions and 7 deletions

View File

@ -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():