Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit df36d48

Browse files
committed
Skip test_coroutine_like_object_debug_formatting under Python < 3.5
1 parent d3e03c8 commit df36d48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_events.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Tests for events.py."""
22

3+
import collections.abc
34
import functools
45
import gc
56
import io
@@ -2381,6 +2382,8 @@ def check_source_traceback(h):
23812382
h = loop.call_later(0, noop)
23822383
check_source_traceback(h)
23832384

2385+
@unittest.skipUnless(hasattr(collections.abc, 'Coroutine'),
2386+
'No collections.abc.Coroutine')
23842387
def test_coroutine_like_object_debug_formatting(self):
23852388
# Test that asyncio can format coroutines that are instances of
23862389
# collections.abc.Coroutine, but lack cr_core or gi_code attributes

0 commit comments

Comments
 (0)