#7124: Fix --doctest-modules crashing when __main__.py is present (#8949)

* Fix ``--doctest-modules`` crashing when ``__main__.py`` is present
This commit is contained in:
Simon K
2021-07-27 22:50:26 +01:00
committed by GitHub
parent 6a1ba80ab7
commit 6d6bc97231
6 changed files with 30 additions and 1 deletions

View File

View File

@@ -0,0 +1,2 @@
def test_this_is_ignored():
assert True

View File

@@ -0,0 +1,6 @@
def test_doc():
"""
>>> 10 > 5
True
"""
assert False