Skip to content

Commit

Permalink
Disable doctests on Python 3.11.9+ but not 3.12.
Browse files Browse the repository at this point in the history
Workaround for python/cpython#117692. Closes #231
  • Loading branch information
jaraco committed Jul 27, 2024
1 parent 73d82bf commit ade8831
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import sys


def pytest_configure(config):
disable_broken_doctests(config)


def disable_broken_doctests(config):
"""
Workaround for python/cpython#117692.
"""
if (3, 11, 9) <= sys.version_info < (3, 12):
config.option.doctestmodules = False

0 comments on commit ade8831

Please sign in to comment.