"""Tests for events.py."""
-import collections.abc
import concurrent.futures
import functools
import io
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
def data_file(*filename):
- if hasattr(support, 'TEST_HOME_DIR'):
- fullname = os.path.join(support.TEST_HOME_DIR, *filename)
- if os.path.isfile(fullname):
- return fullname
+ fullname = os.path.join(support.TEST_HOME_DIR, *filename)
+ if os.path.isfile(fullname):
+ return fullname
fullname = os.path.join(os.path.dirname(__file__), '..', *filename)
if os.path.isfile(fullname):
return fullname