Skip to content

Commit 57b1a28

Browse files
authored
bpo-36597: fix random doctest failure (GH-12776)
1 parent adff01e commit 57b1a28

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.travis.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,20 @@ matrix:
5656
- python -m pip install sphinx==1.8.2 blurb python-docs-theme
5757
script:
5858
- make check suspicious html SPHINXOPTS="-q -W -j4"
59-
# FIXME: bpo-36597: the doctest job fails because it fails
60-
# FIXME: for an unknown reason
61-
#- os: linux
62-
# language: c
63-
# compiler: clang
64-
# env: TESTING=doctest
65-
# addons:
66-
# apt:
67-
# packages:
68-
# - xvfb
69-
# before_script:
70-
# - ./configure
71-
# - make -j4
72-
# - make -C Doc/ PYTHON=../python venv
73-
# script:
74-
# xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest
59+
- os: linux
60+
language: c
61+
compiler: clang
62+
env: TESTING=doctest
63+
addons:
64+
apt:
65+
packages:
66+
- xvfb
67+
before_script:
68+
- ./configure
69+
- make -j4
70+
- make -C Doc/ PYTHON=../python venv
71+
script:
72+
xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest
7573
- os: osx
7674
language: c
7775
compiler: clang

Doc/library/weakref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ is still alive. For instance
492492
>>> obj = Object()
493493
>>> weakref.finalize(obj, print, "obj dead or exiting") #doctest:+ELLIPSIS
494494
<finalize object at ...; for 'Object' at ...>
495-
>>> exit() #doctest:+SKIP
495+
>>> del obj
496496
obj dead or exiting
497497

498498

0 commit comments

Comments
 (0)