We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ce5ce commit 64d649bCopy full SHA for 64d649b
tests/test_modutils.py
@@ -20,7 +20,7 @@
20
21
import astroid
22
from astroid import modutils
23
-from astroid.const import PY310_PLUS
+from astroid.const import PY310_PLUS, WIN32
24
from astroid.interpreter._import import spec
25
26
from . import resources
@@ -269,7 +269,10 @@ def test_std_lib(self) -> None:
269
)
270
271
def test_std_lib_found_before_same_named_package_on_path(self) -> None:
272
- sys.path.insert(0, os.path.realpath(resources.RESOURCE_PATH))
+ realpath = os.path.realpath(resources.RESOURCE_PATH)
273
+ if WIN32:
274
+ raise AssertionError(realpath)
275
+ sys.path.insert(0, realpath)
276
self.addCleanup(sys.path.pop, 0)
277
278
file = modutils.file_from_modpath(["copy"])
0 commit comments