Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ env:
- PYTHONFAULTHANDLER=1
- PYTEST_ADDOPTS="-rawR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
- RUN_PEP8=
- MINIMAL_PYTHON=

matrix:
include:
Expand All @@ -87,6 +88,11 @@ matrix:
- PYTEST=pytest==3.4
- PYTEST_COV=pytest-cov==2.3.1
- SPHINX=sphinx==1.3
# Build a minimal Python configuration where the optional modules have
# been removed. The file in tools/Setup.dist should be updated from the
# CPython repository when the version of Python being tested has
# changed.
- MINIMAL_PYTHON=true
- python: 3.5
env:
# - PYTHONOPTIMIZE=2 # This currently doesn't work.
Expand Down Expand Up @@ -182,6 +188,12 @@ install:
- |
# Install matplotlib
python -mpip install -ve .
- |
# If this is meant to be a minimal python, remove optional modules now
if [[ $MINIMAL_PYTHON == 'true' ]] then
python tools/create_minimal_python.py
export PATH=$PWD/minimal_python/bin:$PATH
fi

before_script: |
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
Expand Down
14 changes: 14 additions & 0 deletions lib/matplotlib/sphinxext/tests/test_tinypages.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
reason="'{} -msphinx' does not return 0".format(sys.executable))


try:
import multiprocessing
HAS_MULTIPROCESSING = True
except ImportError:
HAS_MULTIPROCESSING = False


needs_multiprocessing = pytest.mark.skipif(
not HAS_MULTIPROCESSING,
reason="needs multiprocessing")


@needs_sphinx
@needs_multiprocessing
def test_tinypages(tmpdir):
html_dir = pjoin(str(tmpdir), 'html')
doctree_dir = pjoin(str(tmpdir), 'doctrees')
Expand Down
Loading