From 859c068e52a31e13e2b9bb6a3f861fa8c290cb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Fri, 12 Oct 2018 09:51:05 +0200 Subject: bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806) --- Doc/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc/conf.py') diff --git a/Doc/conf.py b/Doc/conf.py index 7f720ce383..6060ac176c 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -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') -- cgit v1.2.1