File: conftest.py

package info (click to toggle)
path.py 17.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: python: 2,206; makefile: 154; sh: 2
file content (13 lines) | stat: -rw-r--r-- 270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
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