gh-138013: Make `test.test_io` into a package (#138153)
This commit is contained in:
5
Lib/test/test_io/__init__.py
Normal file
5
Lib/test/test_io/__init__.py
Normal file
@@ -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)
|
||||
4
Lib/test/test_io/__main__.py
Normal file
4
Lib/test/test_io/__main__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from . import load_tests
|
||||
import unittest
|
||||
|
||||
unittest.main()
|
||||
@@ -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)
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user