diff -r 180e4b678003 Lib/test/test_asyncio/__init__.py --- a/Lib/test/test_asyncio/__init__.py Mon Feb 17 00:02:43 2014 +0100 +++ b/Lib/test/test_asyncio/__init__.py Mon Feb 17 16:29:03 2014 +0800 @@ -1,6 +1,7 @@ import os import sys import unittest +import glob from test.support import run_unittest, import_module # Skip tests if we don't have threading. @@ -10,9 +11,10 @@ def suite(): - tests_file = os.path.join(os.path.dirname(__file__), 'tests.txt') - with open(tests_file) as fp: - test_names = fp.read().splitlines() + tests_file = glob.glob(os.path.dirname(__file__) + os.path.sep + 'test_*py') + test_names = ['test_asyncio.' + + os.path.splitext(os.path.basename(test_file))[0] + for test_file in tests_file] tests = unittest.TestSuite() loader = unittest.TestLoader() for test_name in test_names: diff -r 180e4b678003 Lib/test/test_asyncio/tests.txt --- a/Lib/test/test_asyncio/tests.txt Mon Feb 17 00:02:43 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -test_asyncio.test_base_events -test_asyncio.test_events -test_asyncio.test_futures -test_asyncio.test_locks -test_asyncio.test_proactor_events -test_asyncio.test_queues -test_asyncio.test_selector_events -test_asyncio.test_streams -test_asyncio.test_tasks -test_asyncio.test_transports -test_asyncio.test_unix_events -test_asyncio.test_windows_events -test_asyncio.test_windows_utils