@@ -104,7 +104,6 @@ def setUp(self):
104
104
# Handling failure on reload is the up to the module.
105
105
test_state_after_failure = None
106
106
107
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
108
107
def test_module (self ):
109
108
'''Test loading an extension module'''
110
109
with util .uncache (self .name ):
@@ -119,7 +118,6 @@ def test_module(self):
119
118
self .assertIsInstance (module .__loader__ ,
120
119
self .machinery .ExtensionFileLoader )
121
120
122
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
123
121
def test_functionality (self ):
124
122
'''Test basic functionality of stuff defined in an extension module'''
125
123
with util .uncache (self .name ):
@@ -140,7 +138,6 @@ def test_functionality(self):
140
138
self .assertEqual (module .int_const , 1969 )
141
139
self .assertEqual (module .str_const , 'something different' )
142
140
143
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
144
141
def test_reload (self ):
145
142
'''Test that reload didn't re-set the module's attributes'''
146
143
with util .uncache (self .name ):
@@ -149,7 +146,6 @@ def test_reload(self):
149
146
importlib .reload (module )
150
147
self .assertIs (ex_class , module .Example )
151
148
152
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
153
149
def test_try_registration (self ):
154
150
'''Assert that the PyState_{Find,Add,Remove}Module C API doesn't work'''
155
151
module = self .load_module ()
@@ -175,15 +171,13 @@ def load_module_by_name(self, fullname):
175
171
loader .exec_module (module )
176
172
return module
177
173
178
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
179
174
def test_load_submodule (self ):
180
175
'''Test loading a simulated submodule'''
181
176
module = self .load_module_by_name ('pkg.' + self .name )
182
177
self .assertIsInstance (module , types .ModuleType )
183
178
self .assertEqual (module .__name__ , 'pkg.' + self .name )
184
179
self .assertEqual (module .str_const , 'something different' )
185
180
186
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
187
181
def test_load_short_name (self ):
188
182
'''Test loading module with a one-character name'''
189
183
module = self .load_module_by_name ('x' )
@@ -192,7 +186,6 @@ def test_load_short_name(self):
192
186
self .assertEqual (module .str_const , 'something different' )
193
187
self .assertNotIn ('x' , sys .modules )
194
188
195
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
196
189
def test_load_twice (self ):
197
190
'''Test that 2 loads result in 2 module objects'''
198
191
module1 = self .load_module_by_name (self .name )
@@ -213,7 +206,6 @@ def test_unloadable_nonascii(self):
213
206
self .load_module_by_name (name )
214
207
self .assertEqual (cm .exception .name , name )
215
208
216
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
217
209
def test_nonmodule (self ):
218
210
'''Test returning a non-module object from create works'''
219
211
name = self .name + '_nonmodule'
@@ -222,7 +214,6 @@ def test_nonmodule(self):
222
214
self .assertEqual (mod .three , 3 )
223
215
224
216
# issue 27782
225
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
226
217
def test_nonmodule_with_methods (self ):
227
218
'''Test creating a non-module object with methods defined'''
228
219
name = self .name + '_nonmodule_with_methods'
@@ -231,15 +222,13 @@ def test_nonmodule_with_methods(self):
231
222
self .assertEqual (mod .three , 3 )
232
223
self .assertEqual (mod .bar (10 , 1 ), 9 )
233
224
234
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
235
225
def test_null_slots (self ):
236
226
'''Test that NULL slots aren't a problem'''
237
227
name = self .name + '_null_slots'
238
228
module = self .load_module_by_name (name )
239
229
self .assertIsInstance (module , types .ModuleType )
240
230
self .assertEqual (module .__name__ , name )
241
231
242
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
243
232
def test_bad_modules (self ):
244
233
'''Test SystemError is raised for misbehaving extensions'''
245
234
for name_base in [
@@ -264,7 +253,6 @@ def test_bad_modules(self):
264
253
with self .assertRaises (SystemError ):
265
254
self .load_module_by_name (name )
266
255
267
- @impl_detail ("GR-26683 multi-phase init not supported" , graalvm = False )
268
256
def test_nonascii (self ):
269
257
'''Test that modules with non-ASCII names can be loaded'''
270
258
# punycode behaves slightly differently in some-ASCII and no-ASCII
0 commit comments