X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8a82e0bf9af1182563abb8bfb0c4e87e836feb95..ecb3d8c472a369bdf04ec22adad3ef4793183bc1:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index 08a3f31..7e50c2f 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -731,7 +731,10 @@ class BlackTestCase(unittest.TestCase): def test_broken_symlink(self) -> None: with cache_dir() as workspace: symlink = workspace / "broken_link.py" - symlink.symlink_to("nonexistent.py") + try: + symlink.symlink_to("nonexistent.py") + except OSError as e: + self.skipTest(f"Can't create symlinks: {e}") result = CliRunner().invoke(black.main, [str(workspace.resolve())]) self.assertEqual(result.exit_code, 0)