Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WIP: Test in a minimal Python configuration #11281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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 12 .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 14 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.