File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import astroid
22
22
from astroid import modutils
23
- from astroid .const import PY310_PLUS , WIN32
23
+ from astroid .const import PY310_PLUS
24
24
from astroid .interpreter ._import import spec
25
25
26
26
from . import resources
@@ -269,14 +269,11 @@ def test_std_lib(self) -> None:
269
269
)
270
270
271
271
def test_std_lib_found_before_same_named_package_on_path (self ) -> None :
272
- resource = resources .find ("data" )
273
- sys .path .insert (0 , resource )
272
+ sys .path .insert (0 , resources .RESOURCE_PATH )
274
273
self .addCleanup (sys .path .pop , 0 )
275
- sys_path = str (sys .path )
276
274
277
275
file = modutils .file_from_modpath (["copy" ])
278
- if WIN32 :
279
- raise AssertionError ('\n ' .join ([resource , sys_path , file ]))
276
+
280
277
self .assertNotIn ("test" , file ) # tests/testdata/python3/data/copy.py
281
278
self .assertTrue (any (stdlib in file for stdlib in modutils .STD_LIB_DIRS ))
282
279
You can’t perform that action at this time.
0 commit comments