File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
graalpython/lib-python/3/test/test_import Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,12 @@ def test_from_import_missing_attr_raises_ImportError(self):
86
86
from importlib import something_that_should_not_exist_anywhere
87
87
88
88
def test_from_import_missing_attr_has_name_and_path (self ):
89
+ # truffle change: replace usage of frozen os module with something else
89
90
with self .assertRaises (ImportError ) as cm :
90
- from os import i_dont_exist
91
- self .assertEqual (cm .exception .name , 'os ' )
92
- self .assertEqual (cm .exception .path , os .__file__ )
93
- self .assertRegex (str (cm .exception ), r"cannot import name 'i_dont_exist' from 'os ' \(.*os .py\)" )
91
+ from test . support import i_dont_exist
92
+ self .assertEqual (cm .exception .name , 'test.support ' )
93
+ self .assertEqual (cm .exception .path , test . support .__file__ )
94
+ self .assertRegex (str (cm .exception ), r"cannot import name 'i_dont_exist' from 'test.support ' \(.*test/support/__init__ .py\)" )
94
95
95
96
@cpython_only
96
97
def test_from_import_missing_attr_has_name_and_so_path (self ):
You can’t perform that action at this time.
0 commit comments