We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb66087 commit a93974dCopy full SHA for a93974d
Lib/test/test_imp.py
@@ -10,6 +10,7 @@
10
from test.support import os_helper
11
from test.support import script_helper
12
from test.support import warnings_helper
13
+from test.support import is_wasi
14
import unittest
15
import warnings
16
imp = warnings_helper.import_deprecated('imp')
@@ -23,6 +24,8 @@ def requires_load_dynamic(meth):
23
24
"""Decorator to skip a test if not running under CPython or lacking
25
imp.load_dynamic()."""
26
meth = support.cpython_only(meth)
27
+ if is_wasi:
28
+ return unittest.skipIf(True, 'Not supoorted in WASI')(meth)
29
return unittest.skipIf(getattr(imp, 'load_dynamic', None) is None,
30
'imp.load_dynamic() required')(meth)
31
0 commit comments