| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d6c3da commit 51b8989
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,17 +18,14 @@ environment: | |||
| 18 | 18 | PYTHONIOENCODING: UTF-8 | |
| 19 | 19 | PYTEST_ARGS: -raR --numprocesses=auto --timeout=300 --durations=25 | |
| 20 | 20 | --cov-report= --cov=lib --log-level=DEBUG | |
| 21 | - PINNEDVERS: "pyzmq!=21.0.0,!=22.0.0" | ||
| 22 | 21 | ||
| 23 | 22 | matrix: | |
| 24 | 23 | - PYTHON_VERSION: "3.8" | |
| 25 | 24 | CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64" | |
| 26 | 25 | TEST_ALL: "no" | |
| 27 | - EXTRAREQS: "-r requirements/testing/extra.txt" | ||
| 28 | 26 | - PYTHON_VERSION: "3.9" | |
| 29 | 27 | CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64" | |
| 30 | 28 | TEST_ALL: "no" | |
| 31 | - EXTRAREQS: "-r requirements/testing/extra.txt" | ||
| 32 | 29 | ||
| 33 | 30 | # We always use a 64-bit machine, but can build x86 distributions | |
| 34 | 31 | # with the PYTHON_ARCH variable | |
@@ -52,19 +49,13 @@ install: | |||
| 52 | 49 | - conda config --prepend channels conda-forge | |
| 53 | 50 | ||
| 54 | 51 | # For building, use a new environment | |
| 55 | - - conda create -q -n test-environment python=%PYTHON_VERSION% tk "pip<22.0" | ||
| 56 | - - activate test-environment | ||
| 57 | - # pull pywin32 from conda because on py38 there is something wrong with finding | ||
| 58 | - # the dlls when installed from pip | ||
| 52 | + # Add python version to environment | ||
| 53 | + # `^ ` escapes spaces for indentation | ||
| 54 | + - echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml | ||
| 55 | + - conda env create -f environment.yml | ||
| 56 | + - activate mpl-dev | ||
| 59 | 57 | - conda install -c conda-forge pywin32 | |
| 60 | - # install pyqt from conda-forge | ||
| 61 | - - conda install -c conda-forge pyqt | ||
| 62 | 58 | - echo %PYTHON_VERSION% %TARGET_ARCH% | |
| 63 | - # Install dependencies from PyPI. | ||
| 64 | - - python -m pip install --upgrade -r requirements/testing/all.txt %EXTRAREQS% %PINNEDVERS% | ||
| 65 | - # Install optional dependencies from PyPI. | ||
| 66 | - # Sphinx is needed to run sphinxext tests | ||
| 67 | - - python -m pip install --upgrade sphinx | ||
| 68 | 59 | # Show the installed packages + versions | |
| 69 | 60 | - conda list | |
| 70 | 61 | ||
@@ -104,7 +95,7 @@ artifacts: | |||
| 104 | 95 | type: zip | |
| 105 | 96 | ||
| 106 | 97 | on_finish: | |
| 107 | - - pip install codecov | ||
| 98 | + - conda install codecov | ||
| 108 | 99 | - codecov -e PYTHON_VERSION PLATFORM | |
| 109 | 100 | ||
| 110 | 101 | on_failure: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ dependencies: | |||
| 44 | 44 | - coverage | |
| 45 | 45 | - flake8>=3.8 | |
| 46 | 46 | - flake8-docstrings>=1.4.0 | |
| 47 | - - gtk3 | ||
| 47 | + - gtk4 | ||
| 48 | 48 | - ipykernel | |
| 49 | 49 | - nbconvert[execute]!=6.0.0,!=6.0.1 | |
| 50 | 50 | - nbformat!=5.0.0,!=5.0.1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,6 +166,8 @@ def test_interactive_backend(env, toolbar): | |||
| 166 | 166 | if env["MPLBACKEND"] == "macosx": | |
| 167 | 167 | if toolbar == "toolmanager": | |
| 168 | 168 | pytest.skip("toolmanager is not implemented for macosx.") | |
| 169 | + if env["MPLBACKEND"] == "wx": | ||
| 170 | + pytest.skip("wx backend is deprecated; tests failed on appveyor") | ||
| 169 | 171 | proc = _run_helper(_test_interactive_impl, | |
| 170 | 172 | json.dumps({"toolbar": toolbar}), | |
| 171 | 173 | timeout=_test_timeout, | |
@@ -568,6 +570,11 @@ def test_figure_leak_20490(env, time_mem): | |||
| 568 | 570 | # We haven't yet directly identified the leaks so test with a memory growth | |
| 569 | 571 | # threshold. | |
| 570 | 572 | pause_time, acceptable_memory_leakage = time_mem | |
| 573 | + if env["MPLBACKEND"] == "wx": | ||
| 574 | + pytest.skip("wx backend is deprecated; tests failed on appveyor") | ||
| 575 | + if env["MPLBACKEND"] == "wxagg" and sys.platform == "win32": | ||
| 576 | + pytest.skip("tests failed on appveyor") | ||
| 577 | + | ||
| 571 | 578 | if env["MPLBACKEND"] == "macosx" or ( | |
| 572 | 579 | env["MPLBACKEND"] == "tkagg" and sys.platform == 'darwin' | |
| 573 | 580 | ): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,8 @@ def test_otf(): | |||
| 73 | 73 | assert res == is_opentype_cff_font(f.fname) | |
| 74 | 74 | ||
| 75 | 75 | ||
| 76 | - @pytest.mark.skipif(not has_fclist, reason='no fontconfig installed') | ||
| 76 | + @pytest.mark.skipif(sys.platform == "win32" or not has_fclist, | ||
| 77 | + reason='no fontconfig installed') | ||
| 77 | 78 | def test_get_fontconfig_fonts(): | |
| 78 | 79 | assert len(_get_fontconfig_fonts()) > 1 | |
| 79 | 80 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,14 +4,20 @@ | |||
| 4 | 4 | import matplotlib | |
| 5 | 5 | import pytest | |
| 6 | 6 | ||
| 7 | - # Get the names of all matplotlib submodules, except for the unit tests. | ||
| 8 | - module_names = [m.name for m in walk_packages(path=matplotlib.__path__, | ||
| 9 | - prefix=f'{matplotlib.__name__}.') | ||
| 10 | - if not m.name.startswith(__package__)] | ||
| 7 | + # Get the names of all matplotlib submodules, | ||
| 8 | + # except for the unit tests and private modules. | ||
| 9 | + module_names = [ | ||
| 10 | + m.name | ||
| 11 | + for m in walk_packages( | ||
| 12 | + path=matplotlib.__path__, prefix=f"{matplotlib.__name__}." | ||
| 13 | + ) | ||
| 14 | + if not m.name.startswith(__package__) | ||
| 15 | + and not any(x.startswith("_") for x in m.name.split(".")) | ||
| 16 | + ] | ||
| 11 | 17 | ||
| 12 | 18 | ||
| 13 | - @pytest.mark.parametrize('module_name', module_names) | ||
| 14 | - @pytest.mark.filterwarnings('ignore::DeprecationWarning') | ||
| 19 | + @pytest.mark.parametrize("module_name", module_names) | ||
| 20 | + @pytest.mark.filterwarnings("ignore::DeprecationWarning") | ||
| 15 | 21 | def test_getattr(module_name): | |
| 16 | 22 | """ | |
| 17 | 23 | Test that __getattr__ methods raise AttributeError for unknown keys. | |
@@ -21,8 +27,8 @@ def test_getattr(module_name): | |||
| 21 | 27 | module = import_module(module_name) | |
| 22 | 28 | except (ImportError, RuntimeError) as e: | |
| 23 | 29 | # Skip modules that cannot be imported due to missing dependencies | |
| 24 | - pytest.skip(f'Cannot import {module_name} due to {e}') | ||
| 30 | + pytest.skip(f"Cannot import {module_name} due to {e}") | ||
| 25 | 31 | ||
| 26 | - key = 'THIS_SYMBOL_SHOULD_NOT_EXIST' | ||
| 32 | + key = "THIS_SYMBOL_SHOULD_NOT_EXIST" | ||
| 27 | 33 | if hasattr(module, key): | |
| 28 | 34 | delattr(module, key) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments