diff --git a/tests/unit/test_resources.py b/tests/unit/test_resources.py index e8c93d6..d5ca455 100644 --- a/tests/unit/test_resources.py +++ b/tests/unit/test_resources.py @@ -57,8 +57,10 @@ def test_executable(self): res = ExecutableResolver([self.res1], code="code1", module="module1", suffix=suffix) self.assertNotIn("versionnonexec", res.available_versions, "ExecutableResolver must not list scripts that are not executable.") - self.assertNotIn("wrong_format", res.available_versions, - "ExecutableResolver must not list scripts that do not follow the correct format.") + if os.name != "nt": + # no exec bits are present on windows it seems + self.assertNotIn("wrong_format", res.available_versions, + "ExecutableResolver must not list scripts that do not follow the correct format.") self.assertEqual("version1", res.default_version, "default version should be chosen in alphabetical order if not explicitly set.") res = ExecutableResolver([self.res1], code="code2", module="module1", suffix=suffix)