diff --git a/pyflakes/test/test_doctests.py b/pyflakes/test/test_doctests.py index b6dfe629..0451cfd9 100644 --- a/pyflakes/test/test_doctests.py +++ b/pyflakes/test/test_doctests.py @@ -431,6 +431,18 @@ def doctest_stuff(): ''' """, m.UnusedImport) + def test_malformed_doctest_ignored(self): + self.flakes(""" + def f(): + '''my docstring + + >>> hello + ... + ... + >>> world + ''' + """) + class TestOther(_DoctestMixin, TestOther): """Run TestOther with each test wrapped in a doctest."""