mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)
This commit is contained in:
parent
53ebf4b070
commit
859c068e52
9 changed files with 218 additions and 73 deletions
|
@ -16,6 +16,13 @@ sys.path.append(os.path.abspath('includes'))
|
|||
extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
|
||||
'pyspecific', 'c_annotations', 'escape4chm']
|
||||
|
||||
|
||||
doctest_global_setup = '''
|
||||
try:
|
||||
import _tkinter
|
||||
except ImportError:
|
||||
_tkinter = None
|
||||
'''
|
||||
# General substitutions.
|
||||
project = 'Python'
|
||||
copyright = '2001-%s, Python Software Foundation' % time.strftime('%Y')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue