Skip to content

Commit 43ecfe3

Browse files
committed
test_importlib: skip _testmultiphase related tests
1 parent fa1eafb commit 43ecfe3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

graalpython/lib-python/3/test/test_importlib/extension/test_loader.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import importlib.util
1111
import importlib
1212
from test.support.script_helper import assert_python_failure
13+
from test.support import impl_detail
1314

1415
class LoaderTests(abc.LoaderTests):
1516

@@ -103,6 +104,7 @@ def setUp(self):
103104
# Handling failure on reload is the up to the module.
104105
test_state_after_failure = None
105106

107+
@impl_detail("GR-26524 arrity error", graalvm=False)
106108
def test_module(self):
107109
'''Test loading an extension module'''
108110
with util.uncache(self.name):
@@ -117,6 +119,7 @@ def test_module(self):
117119
self.assertIsInstance(module.__loader__,
118120
self.machinery.ExtensionFileLoader)
119121

122+
@impl_detail("GR-26524 arrity error", graalvm=False)
120123
def test_functionality(self):
121124
'''Test basic functionality of stuff defined in an extension module'''
122125
with util.uncache(self.name):
@@ -137,6 +140,7 @@ def test_functionality(self):
137140
self.assertEqual(module.int_const, 1969)
138141
self.assertEqual(module.str_const, 'something different')
139142

143+
@impl_detail("GR-26524 arrity error", graalvm=False)
140144
def test_reload(self):
141145
'''Test that reload didn't re-set the module's attributes'''
142146
with util.uncache(self.name):
@@ -145,6 +149,7 @@ def test_reload(self):
145149
importlib.reload(module)
146150
self.assertIs(ex_class, module.Example)
147151

152+
@impl_detail("GR-26524 arrity error", graalvm=False)
148153
def test_try_registration(self):
149154
'''Assert that the PyState_{Find,Add,Remove}Module C API doesn't work'''
150155
module = self.load_module()
@@ -170,13 +175,15 @@ def load_module_by_name(self, fullname):
170175
loader.exec_module(module)
171176
return module
172177

178+
@impl_detail("GR-26524 arrity error", graalvm=False)
173179
def test_load_submodule(self):
174180
'''Test loading a simulated submodule'''
175181
module = self.load_module_by_name('pkg.' + self.name)
176182
self.assertIsInstance(module, types.ModuleType)
177183
self.assertEqual(module.__name__, 'pkg.' + self.name)
178184
self.assertEqual(module.str_const, 'something different')
179185

186+
@impl_detail("GR-26524 arrity error", graalvm=False)
180187
def test_load_short_name(self):
181188
'''Test loading module with a one-character name'''
182189
module = self.load_module_by_name('x')
@@ -185,6 +192,7 @@ def test_load_short_name(self):
185192
self.assertEqual(module.str_const, 'something different')
186193
self.assertNotIn('x', sys.modules)
187194

195+
@impl_detail("GR-26524 arrity error", graalvm=False)
188196
def test_load_twice(self):
189197
'''Test that 2 loads result in 2 module objects'''
190198
module1 = self.load_module_by_name(self.name)
@@ -205,6 +213,7 @@ def test_unloadable_nonascii(self):
205213
self.load_module_by_name(name)
206214
self.assertEqual(cm.exception.name, name)
207215

216+
@impl_detail("GR-26524 arrity error", graalvm=False)
208217
def test_nonmodule(self):
209218
'''Test returning a non-module object from create works'''
210219
name = self.name + '_nonmodule'
@@ -213,6 +222,7 @@ def test_nonmodule(self):
213222
self.assertEqual(mod.three, 3)
214223

215224
# issue 27782
225+
@impl_detail("GR-26524 arrity error", graalvm=False)
216226
def test_nonmodule_with_methods(self):
217227
'''Test creating a non-module object with methods defined'''
218228
name = self.name + '_nonmodule_with_methods'
@@ -221,13 +231,15 @@ def test_nonmodule_with_methods(self):
221231
self.assertEqual(mod.three, 3)
222232
self.assertEqual(mod.bar(10, 1), 9)
223233

234+
@impl_detail("GR-26524 arrity error", graalvm=False)
224235
def test_null_slots(self):
225236
'''Test that NULL slots aren't a problem'''
226237
name = self.name + '_null_slots'
227238
module = self.load_module_by_name(name)
228239
self.assertIsInstance(module, types.ModuleType)
229240
self.assertEqual(module.__name__, name)
230241

242+
@impl_detail("GR-26524 arrity error", graalvm=False)
231243
def test_bad_modules(self):
232244
'''Test SystemError is raised for misbehaving extensions'''
233245
for name_base in [
@@ -252,6 +264,7 @@ def test_bad_modules(self):
252264
with self.assertRaises(SystemError):
253265
self.load_module_by_name(name)
254266

267+
@impl_detail("GR-26524 arrity error", graalvm=False)
255268
def test_nonascii(self):
256269
'''Test that modules with non-ASCII names can be loaded'''
257270
# punycode behaves slightly differently in some-ASCII and no-ASCII

0 commit comments

Comments
 (0)