File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
"""Tests for events.py."""
2
2
3
- import collections .abc
4
3
import concurrent .futures
5
4
import functools
6
5
import io
@@ -2335,8 +2334,6 @@ def check_source_traceback(h):
2335
2334
h = loop .call_later (0 , noop )
2336
2335
check_source_traceback (h )
2337
2336
2338
- @unittest .skipUnless (hasattr (collections .abc , 'Coroutine' ),
2339
- 'No collections.abc.Coroutine' )
2340
2337
def test_coroutine_like_object_debug_formatting (self ):
2341
2338
# Test that asyncio can format coroutines that are instances of
2342
2339
# collections.abc.Coroutine, but lack cr_core or gi_code attributes
Original file line number Diff line number Diff line change 37
37
38
38
39
39
def data_file (* filename ):
40
- if hasattr (support , 'TEST_HOME_DIR' ):
41
- fullname = os .path .join (support .TEST_HOME_DIR , * filename )
42
- if os .path .isfile (fullname ):
43
- return fullname
40
+ fullname = os .path .join (support .TEST_HOME_DIR , * filename )
41
+ if os .path .isfile (fullname ):
42
+ return fullname
44
43
fullname = os .path .join (os .path .dirname (__file__ ), '..' , * filename )
45
44
if os .path .isfile (fullname ):
46
45
return fullname
You can’t perform that action at this time.
0 commit comments