Skip to content

Commit 64d649b

Browse files
debug
1 parent 31ce5ce commit 64d649b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_modutils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import astroid
2222
from astroid import modutils
23-
from astroid.const import PY310_PLUS
23+
from astroid.const import PY310_PLUS, WIN32
2424
from astroid.interpreter._import import spec
2525

2626
from . import resources
@@ -269,7 +269,10 @@ def test_std_lib(self) -> None:
269269
)
270270

271271
def test_std_lib_found_before_same_named_package_on_path(self) -> None:
272-
sys.path.insert(0, os.path.realpath(resources.RESOURCE_PATH))
272+
realpath = os.path.realpath(resources.RESOURCE_PATH)
273+
if WIN32:
274+
raise AssertionError(realpath)
275+
sys.path.insert(0, realpath)
273276
self.addCleanup(sys.path.pop, 0)
274277

275278
file = modutils.file_from_modpath(["copy"])

0 commit comments

Comments
 (0)