diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-11-10 06:54:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 06:54:37 (GMT) |
commit | f883b7f8ee3209b52863fc662343c8cd81abdc59 (patch) | |
tree | 914b5e37ca07ed528b964b9c17778da34b834640 | |
parent | 87f5180cd79617223ac513e9f45933f774134e32 (diff) | |
download | cpython-f883b7f8ee3209b52863fc662343c8cd81abdc59.zip cpython-f883b7f8ee3209b52863fc662343c8cd81abdc59.tar.gz cpython-f883b7f8ee3209b52863fc662343c8cd81abdc59.tar.bz2 |
bpo-34272: Reorganize C API tests. (GH-8551)
Move some C API tests into Lib/test/test_capi/.
-rw-r--r-- | Lib/test/test_capi/__init__.py | 5 | ||||
-rw-r--r-- | Lib/test/test_capi/__main__.py | 3 | ||||
-rw-r--r-- | Lib/test/test_capi/test_getargs.py (renamed from Lib/test/test_getargs2.py) | 0 | ||||
-rw-r--r-- | Lib/test/test_capi/test_misc.py (renamed from Lib/test/test_capi.py) | 0 | ||||
-rw-r--r-- | Lib/test/test_capi/test_structmembers.py (renamed from Lib/test/test_structmembers.py) | 0 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Tests/2018-07-29-15-59-51.bpo-34272.lVX2uR.rst | 1 |
6 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_capi/__init__.py b/Lib/test/test_capi/__init__.py new file mode 100644 index 0000000..4b16ecc --- /dev/null +++ b/Lib/test/test_capi/__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_capi/__main__.py b/Lib/test/test_capi/__main__.py new file mode 100644 index 0000000..05d0177 --- /dev/null +++ b/Lib/test/test_capi/__main__.py @@ -0,0 +1,3 @@ +import unittest + +unittest.main('test.test_capi') diff --git a/Lib/test/test_getargs2.py b/Lib/test/test_capi/test_getargs.py index 1d5c7fb..1d5c7fb 100644 --- a/Lib/test/test_getargs2.py +++ b/Lib/test/test_capi/test_getargs.py diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi/test_misc.py index ea4c9de..ea4c9de 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi/test_misc.py diff --git a/Lib/test/test_structmembers.py b/Lib/test/test_capi/test_structmembers.py index 07d2f62..07d2f62 100644 --- a/Lib/test/test_structmembers.py +++ b/Lib/test/test_capi/test_structmembers.py diff --git a/Misc/NEWS.d/next/Tests/2018-07-29-15-59-51.bpo-34272.lVX2uR.rst b/Misc/NEWS.d/next/Tests/2018-07-29-15-59-51.bpo-34272.lVX2uR.rst new file mode 100644 index 0000000..479299e --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2018-07-29-15-59-51.bpo-34272.lVX2uR.rst @@ -0,0 +1 @@ +Some C API tests were moved into the new Lib/test/test_capi/ directory. |