Skip to content

Commit

Permalink
src/sage/doctest/sources.py (_test_enough_doctests): Honor nodoctest.…
Browse files Browse the repository at this point in the history
…py files in doctest
  • Loading branch information
Matthias Koeppe committed Oct 9, 2023
1 parent 49c56e4 commit 984cf52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/doctest/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,9 @@ def _test_enough_doctests(self, check_extras=True, verbose=True):
....: path = os.path.relpath(path)
....: dirs.sort(); files.sort()
....: for F in files:
....: if F == 'nodoctest.py':
....: dirs.clear()
....: break
....: _, ext = os.path.splitext(F)
....: if ext in ('.py', '.pyx', '.pxd', '.pxi', '.sage', '.spyx', '.rst'):
....: filename = os.path.join(path, F)
Expand Down

0 comments on commit 984cf52

Please sign in to comment.