diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-12 17:36:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 17:36:49 (GMT) |
commit | 535027f470b680221c7695f015a0d8f0f4f8e1d0 (patch) | |
tree | e32a91dff1a3fcdb6083a6bad7c74bcab8cc0d8f /Lib/test | |
parent | 8d27e6294b73fa2b5c6ecbeee072bb05c30d2685 (diff) | |
download | cpython-535027f470b680221c7695f015a0d8f0f4f8e1d0.zip cpython-535027f470b680221c7695f015a0d8f0f4f8e1d0.tar.gz cpython-535027f470b680221c7695f015a0d8f0f4f8e1d0.tar.bz2 |
bpo-34272: Reorganize C API tests. (GH-8551)
Move some C API tests into Lib/test/test_capi/.
(cherry picked from commit f883b7f8ee3209b52863fc662343c8cd81abdc59)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test')
-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 |
5 files changed, 8 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 72b6d64..72b6d64 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 404a13a..404a13a 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 |