File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,14 @@ def test_recursive_import_from():
136
136
assert package .recpkg .context is package .recpkg .reduction .context
137
137
138
138
139
- def test_imp_cached_imports ():
140
- import _imp
139
+ if sys .implementation .name == "graalpython" :
140
+ def test_imp_cached_imports ():
141
+ import _imp
141
142
142
- finder = _imp .CachedImportFinder
143
+ finder = _imp .CachedImportFinder
143
144
144
- spec = finder .find_spec ("encodings" , None )
145
- assert spec .submodule_search_locations
145
+ spec = finder .find_spec ("encodings" , None )
146
+ assert spec .submodule_search_locations
146
147
147
- spec = finder .find_spec ("encodings.utf_8" , None )
148
- assert not spec .submodule_search_locations
148
+ spec = finder .find_spec ("encodings.utf_8" , None )
149
+ assert not spec .submodule_search_locations
You can’t perform that action at this time.
0 commit comments