Skip to content

Commit 9d4d697

Browse files
committed
Don't test internal C API with C11
1 parent 30c6265 commit 9d4d697

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Lib/test/test_cext/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ class BaseTests:
3535
def test_build(self):
3636
self.check_build('_test_cext')
3737

38-
def test_build_c11(self):
39-
self.check_build('_test_c11_cext', std='c11')
40-
41-
@unittest.skipIf(support.MS_WINDOWS, "MSVC doesn't support /std:c99")
42-
def test_build_c99(self):
43-
# In public docs, we say C API is compatible with C11. However,
44-
# in practice we do maintain C99 compatibility in public headers.
45-
# Please ask the C API WG before adding a new C11-only feature.
46-
self.check_build('_test_c99_cext', std='c99')
47-
4838
def check_build(self, extension_name, std=None, limited=False):
4939
venv_dir = 'env'
5040
with support.setup_venv_with_pip_setuptools(venv_dir) as python_exe:
@@ -114,6 +104,16 @@ def test_build_limited(self):
114104
def test_build_limited_c11(self):
115105
self.check_build('_test_limited_c11_cext', limited=True, std='c11')
116106

107+
def test_build_c11(self):
108+
self.check_build('_test_c11_cext', std='c11')
109+
110+
@unittest.skipIf(support.MS_WINDOWS, "MSVC doesn't support /std:c99")
111+
def test_build_c99(self):
112+
# In public docs, we say C API is compatible with C11. However,
113+
# in practice we do maintain C99 compatibility in public headers.
114+
# Please ask the C API WG before adding a new C11-only feature.
115+
self.check_build('_test_c99_cext', std='c99')
116+
117117

118118
class TestInteralCAPI(BaseTests, unittest.TestCase):
119119
TEST_INTERNAL_C_API = True

0 commit comments

Comments
 (0)