diff --git a/tests/test_modutils.py b/tests/test_modutils.py index 692984b305..0bdcbf2fa0 100644 --- a/tests/test_modutils.py +++ b/tests/test_modutils.py @@ -269,7 +269,7 @@ def test_std_lib(self) -> None: ) def test_std_lib_found_before_same_named_package_on_path(self) -> None: - sys.path.insert(0, resources.RESOURCE_PATH) + sys.path.insert(0, str(resources.RESOURCE_PATH)) self.addCleanup(sys.path.pop, 0) file = modutils.file_from_modpath(["copy"])