]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34272: Reorganize C API tests. (GH-8551)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Nov 2022 17:36:42 +0000 (09:36 -0800)
committerGitHub <noreply@github.com>
Sat, 12 Nov 2022 17:36:42 +0000 (09:36 -0800)
Move some C API tests into Lib/test/test_capi/.
(cherry picked from commit f883b7f8ee3209b52863fc662343c8cd81abdc59)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_capi/__init__.py [new file with mode: 0644]
Lib/test/test_capi/__main__.py [new file with mode: 0644]
Lib/test/test_capi/test_getargs.py [moved from Lib/test/test_getargs2.py with 100% similarity]
Lib/test/test_capi/test_misc.py [moved from Lib/test/test_capi.py with 100% similarity]
Lib/test/test_capi/test_structmembers.py [moved from Lib/test/test_structmembers.py with 100% similarity]
Misc/NEWS.d/next/Tests/2018-07-29-15-59-51.bpo-34272.lVX2uR.rst [new file with mode: 0644]

diff --git a/Lib/test/test_capi/__init__.py b/Lib/test/test_capi/__init__.py
new file mode 100644 (file)
index 0000000..4b16ecc
--- /dev/null
@@ -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 (file)
index 0000000..05d0177
--- /dev/null
@@ -0,0 +1,3 @@
+import unittest
+
+unittest.main('test.test_capi')
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 (file)
index 0000000..479299e
--- /dev/null
@@ -0,0 +1 @@
+Some C API tests were moved into the new Lib/test/test_capi/ directory.