diff --git a/Lib/test/test_io/__init__.py b/Lib/test/test_io/__init__.py new file mode 100644 index 0000000000..4b16ecc311 --- /dev/null +++ b/Lib/test/test_io/__init__.py @@ -0,0 +1,5 @@ +import os +from test.support import load_package_tests + +def load_tests(*args): + return load_package_tests(os.path.dirname(__file__), *args) diff --git a/Lib/test/test_io/__main__.py b/Lib/test/test_io/__main__.py new file mode 100644 index 0000000000..40a23a297e --- /dev/null +++ b/Lib/test/test_io/__main__.py @@ -0,0 +1,4 @@ +from . import load_tests +import unittest + +unittest.main() diff --git a/Lib/test/test_io.py b/Lib/test/test_io/test_general.py similarity index 99% rename from Lib/test/test_io.py rename to Lib/test/test_io/test_general.py index 92be2763e5..a56a2c0157 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io/test_general.py @@ -5,7 +5,7 @@ # * test_memoryio - tests BytesIO and StringIO # * test_fileio - tests FileIO # * test_file - tests the file interface -# * test_io - tests everything else in the io module +# * test_io.test_general - tests everything else in the io module # * test_univnewlines - tests universal newline support # * test_largefile - tests operations on a file greater than 2**32 bytes # (only enabled with -ulargefile) diff --git a/Makefile.pre.in b/Makefile.pre.in index 9ce6ec65f1..eb07f66f14 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -2670,6 +2670,7 @@ TESTSUBDIRS= idlelib/idle_test \ test/test_importlib/source \ test/test_inspect \ test/test_interpreters \ + test/test_io \ test/test_json \ test/test_module \ test/test_multiprocessing_fork \