@@ -35,16 +35,6 @@ class BaseTests:
35
35
def test_build (self ):
36
36
self .check_build ('_test_cext' )
37
37
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
-
48
38
def check_build (self , extension_name , std = None , limited = False ):
49
39
venv_dir = 'env'
50
40
with support .setup_venv_with_pip_setuptools (venv_dir ) as python_exe :
@@ -114,6 +104,16 @@ def test_build_limited(self):
114
104
def test_build_limited_c11 (self ):
115
105
self .check_build ('_test_limited_c11_cext' , limited = True , std = 'c11' )
116
106
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
+
117
117
118
118
class TestInteralCAPI (BaseTests , unittest .TestCase ):
119
119
TEST_INTERNAL_C_API = True
0 commit comments