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