X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/21c8dc85f5fa6ca70b028027a03588e12f532636..3eea3aad864b83af3b6c477c32f15eb821fe9341:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index cf20945..bc133ca 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -695,6 +695,13 @@ class BlackTestCase(unittest.TestCase): result = CliRunner().invoke(black.main, []) self.assertEqual(result.exit_code, 0) + def test_broken_symlink(self) -> None: + with cache_dir() as workspace: + symlink = workspace / "broken_link.py" + symlink.symlink_to("nonexistent.py") + result = CliRunner().invoke(black.main, [str(workspace.resolve())]) + self.assertEqual(result.exit_code, 0) + def test_read_cache_line_lengths(self) -> None: with cache_dir() as workspace: path = (workspace / "file.py").resolve()