File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ def test_from_import_missing_attr_has_name_and_path(self):
85
85
from os import i_dont_exist
86
86
self .assertEqual (cm .exception .name , 'os' )
87
87
self .assertEqual (cm .exception .path , os .__file__ )
88
- self .assertRegex (str (cm .exception ), "cannot import name 'i_dont_exist' from 'os' \(.*os.py\)" )
88
+ self .assertRegex (str (cm .exception ), r "cannot import name 'i_dont_exist' from 'os' \(.*os.py\)" )
89
89
90
90
def test_from_import_missing_attr_has_name_and_so_path (self ):
91
91
import select
92
92
with self .assertRaises (ImportError ) as cm :
93
93
from select import i_dont_exist
94
94
self .assertEqual (cm .exception .name , 'select' )
95
95
self .assertEqual (cm .exception .path , select .__file__ )
96
- self .assertRegex (str (cm .exception ), "cannot import name 'i_dont_exist' from 'select' \(.*\.(so|pyd)\)" )
96
+ self .assertRegex (str (cm .exception ), r "cannot import name 'i_dont_exist' from 'select' \(.*\.(so|pyd)\)" )
97
97
98
98
def test_from_import_missing_attr_has_name (self ):
99
99
with self .assertRaises (ImportError ) as cm :
You can’t perform that action at this time.
0 commit comments