Skip to content

Commit 4a74654

Browse files
...on windows
1 parent 660bf92 commit 4a74654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_modutils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def test_std_lib_found_before_same_named_package_on_path(self) -> None:
275275
sys_path = str(sys.path)
276276

277277
file = modutils.file_from_modpath(["copy"])
278-
raise AssertionError('\n'.join(resource, sys_path, file))
278+
if WIN32:
279+
raise AssertionError('\n'.join(resource, sys_path, file))
279280
self.assertNotIn("test", file) # tests/testdata/python3/data/copy.py
280281
self.assertTrue(any(stdlib in file for stdlib in modutils.STD_LIB_DIRS))
281282

0 commit comments

Comments
 (0)