mirror of
https://github.com/python/cpython.git
synced 2025-11-09 10:01:42 +00:00
gh-138013: Make `test.test_io` into a package (#138153)
This commit is contained in:
parent
552cf86b83
commit
15e37ea6b7
4 changed files with 11 additions and 1 deletions
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_memoryio - tests BytesIO and StringIO
|
||||||
# * test_fileio - tests FileIO
|
# * test_fileio - tests FileIO
|
||||||
# * test_file - tests the file interface
|
# * 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_univnewlines - tests universal newline support
|
||||||
# * test_largefile - tests operations on a file greater than 2**32 bytes
|
# * test_largefile - tests operations on a file greater than 2**32 bytes
|
||||||
# (only enabled with -ulargefile)
|
# (only enabled with -ulargefile)
|
||||||
|
|
@ -2670,6 +2670,7 @@ TESTSUBDIRS= idlelib/idle_test \
|
||||||
test/test_importlib/source \
|
test/test_importlib/source \
|
||||||
test/test_inspect \
|
test/test_inspect \
|
||||||
test/test_interpreters \
|
test/test_interpreters \
|
||||||
|
test/test_io \
|
||||||
test/test_json \
|
test/test_json \
|
||||||
test/test_module \
|
test/test_module \
|
||||||
test/test_multiprocessing_fork \
|
test/test_multiprocessing_fork \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue