diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-14 03:57:59 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-14 03:57:59 (GMT) |
| commit | 08e5300afc9b677ea4222a7490ac7e3fa02b35bf (patch) | |
| tree | c831fce738179a8b9bded9cd082b3a8a01505988 /Lib/test/test_collections.py | |
| parent | aded55c6e3d893d7543bd642d7f0a6609d26e2e3 (diff) | |
| download | cpython-08e5300afc9b677ea4222a7490ac7e3fa02b35bf.zip cpython-08e5300afc9b677ea4222a7490ac7e3fa02b35bf.tar.gz cpython-08e5300afc9b677ea4222a7490ac7e3fa02b35bf.tar.bz2 | |
collections.abc.tests: Remove some unnecessary code.
Diffstat (limited to 'Lib/test/test_collections.py')
| -rw-r--r-- | Lib/test/test_collections.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 3d1db5c..16c26ad 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -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(): |
