Skip to content

Commit c8fd9f0

Browse files
Debug on cloud (windows...)
1 parent 0a3e854 commit c8fd9f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_modutils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,18 @@ 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, resources.find("data"))
272+
resource = resources.find("data")
273+
sys.path.insert(0, resource)
273274
self.addCleanup(sys.path.pop, 0)
275+
sys_path = str(sys.path)
274276

275277
file = modutils.file_from_modpath(["copy"])
276278

279+
assert False, str(
280+
resource,
281+
sys_path,
282+
file
283+
)
277284
self.assertNotIn("test", file) # tests/testdata/python3/data/copy.py
278285
self.assertTrue(any(stdlib in file for stdlib in modutils.STD_LIB_DIRS))
279286

0 commit comments

Comments
 (0)