Skip to content

Commit 15e37ea

Browse files
authored
gh-138013: Make test.test_io into a package (#138153)
1 parent 552cf86 commit 15e37ea

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

Lib/test/test_io/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
from test.support import load_package_tests
3+
4+
def load_tests(*args):
5+
return load_package_tests(os.path.dirname(__file__), *args)

Lib/test/test_io/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from . import load_tests
2+
import unittest
3+
4+
unittest.main()

Lib/test/test_io.py renamed to Lib/test/test_io/test_general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# * test_memoryio - tests BytesIO and StringIO
66
# * test_fileio - tests FileIO
77
# * test_file - tests the file interface
8-
# * test_io - tests everything else in the io module
8+
# * test_io.test_general - tests everything else in the io module
99
# * test_univnewlines - tests universal newline support
1010
# * test_largefile - tests operations on a file greater than 2**32 bytes
1111
# (only enabled with -ulargefile)

Makefile.pre.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,6 +2670,7 @@ TESTSUBDIRS= idlelib/idle_test \
26702670
test/test_importlib/source \
26712671
test/test_inspect \
26722672
test/test_interpreters \
2673+
test/test_io \
26732674
test/test_json \
26742675
test/test_module \
26752676
test/test_multiprocessing_fork \

0 commit comments

Comments
 (0)