diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-09-23 04:14:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 04:14:15 (GMT) |
commit | 0d20fc7477a21328dd353071eaa06384bb818f7b (patch) | |
tree | 9b9c56e7656be87f5702c877de737f94602a10eb /Lib/test/test_asyncio/test_events.py | |
parent | b10de68c6ceae1076cdc98c890b9802dc81a7f44 (diff) | |
download | cpython-0d20fc7477a21328dd353071eaa06384bb818f7b.zip cpython-0d20fc7477a21328dd353071eaa06384bb818f7b.tar.gz cpython-0d20fc7477a21328dd353071eaa06384bb818f7b.tar.bz2 |
gh-109505: Remove unnecessary `hasattr` checks from `test_asyncio` (#109506)
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 1647d23..f22cb5e 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1,6 +1,5 @@ """Tests for events.py.""" -import collections.abc import concurrent.futures import functools import io @@ -2335,8 +2334,6 @@ class HandleTests(test_utils.TestCase): h = loop.call_later(0, noop) check_source_traceback(h) - @unittest.skipUnless(hasattr(collections.abc, 'Coroutine'), - 'No collections.abc.Coroutine') def test_coroutine_like_object_debug_formatting(self): # Test that asyncio can format coroutines that are instances of # collections.abc.Coroutine, but lack cr_core or gi_code attributes |