Skip to content

Commit

Permalink
Fix the --no-exec flag
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Dec 15, 2023
1 parent 6da0c62 commit 9bf10fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papyri/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ def debugprint(*args):
doctest_runner.globs,
obj.__name__, filename,
lineno)
if doctests.examples:
if config.exec and doctests.examples:
doctest_runner.run(doctests, out=debugprint)
example_section_data.extend(doctest_runner.example_section_data)
else:
Expand Down

0 comments on commit 9bf10fb

Please sign in to comment.