Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pyflakes/test/test_doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
Loading