Skip to content

Commit c735d54

Browse files
authored
gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)
* Move Lib/unittest/test/ to Lib/test/test_unittest/ * Remove Lib/test/test_unittest.py * Replace unittest.test with test.test_unittest * Remove unittest.load_tests() * Rewrite unittest __init__.py and __main__.py * Update build system, CODEOWNERS, and wasm_assets.py
1 parent d82e0bf commit c735d54

38 files changed

+77
-137
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Lib/ast.py @isidentical
9797

9898
# Mock
9999
/Lib/unittest/mock.py @cjw296
100-
/Lib/unittest/test/testmock/* @cjw296
100+
/Lib/test/test_unittest/testmock/* @cjw296
101101

102102
# SQLite 3
103103
**/*sqlite* @berkerpeksag @erlend-aasland

Lib/test/test_unittest.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

Lib/test/test_unittest/__init__.py

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

Lib/test/test_unittest/__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()
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)