bpo-36597: fix random doctest failure (GH-12776)

This commit is contained in:
Inada Naoki 2019-04-11 17:53:49 +09:00 committed by GitHub
parent adff01e81d
commit 57b1a2862a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 17 deletions

View File

@ -56,22 +56,20 @@ matrix:
- python -m pip install sphinx==1.8.2 blurb python-docs-theme
script:
- make check suspicious html SPHINXOPTS="-q -W -j4"
# FIXME: bpo-36597: the doctest job fails because it fails
# FIXME: for an unknown reason
#- os: linux
# language: c
# compiler: clang
# env: TESTING=doctest
# addons:
# apt:
# packages:
# - xvfb
# before_script:
# - ./configure
# - make -j4
# - make -C Doc/ PYTHON=../python venv
# script:
# xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest
- os: linux
language: c
compiler: clang
env: TESTING=doctest
addons:
apt:
packages:
- xvfb
before_script:
- ./configure
- make -j4
- make -C Doc/ PYTHON=../python venv
script:
xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest
- os: osx
language: c
compiler: clang

View File

@ -492,7 +492,7 @@ is still alive. For instance
>>> obj = Object()
>>> weakref.finalize(obj, print, "obj dead or exiting") #doctest:+ELLIPSIS
<finalize object at ...; for 'Object' at ...>
>>> exit() #doctest:+SKIP
>>> del obj
obj dead or exiting