diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py index 518a49fe..92a7240e 100644 --- a/pyflakes/test/test_api.py +++ b/pyflakes/test/test_api.py @@ -218,6 +218,11 @@ def test_explicitFiles(self): self.assertEqual(list(iterSourceCode([epath])), [epath]) + def test_skips_dead_symlink(self): + os.symlink('dead', os.path.join(self.tempdir, 'symlink')) + tpath = self.makeEmptyFile('t.py') + self.assertEqual(list(iterSourceCode([self.tempdir])), [tpath]) + class TestReporter(TestCase): """