Simplify appveyor to only use conda · fedora-python/matplotlib@51b8989 · GitHub
Skip to content

Commit 51b8989

Browse files
committed
Simplify appveyor to only use conda
Closes matplotlib#24394 Adjust environment.yml skip fontconfig private method test on windows skip fontconfig private method test on windows revert adding fontconfig explicitly to environment Add wxpython back Skip some wx tests Upgrade to gtk4 in environment.yml ignore private modules in getattr test _backend_gtk would fail because it expects one of gtk4 or gtk3 to be imported first Clean up appveyor.yml comments skip memleak test for wxagg conda activate does not, in fact, work revert to simply activate
1 parent 3d6c3da commit 51b8989

5 files changed

Lines changed: 30 additions & 25 deletions

File tree

.appveyor.yml

Lines changed: 6 additions & 15 deletions

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies:
4444
- coverage
4545
- flake8>=3.8
4646
- flake8-docstrings>=1.4.0
47-
- gtk3
47+
- gtk4
4848
- ipykernel
4949
- nbconvert[execute]!=6.0.0,!=6.0.1
5050
- nbformat!=5.0.0,!=5.0.1

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ def test_interactive_backend(env, toolbar):
166166
if env["MPLBACKEND"] == "macosx":
167167
if toolbar == "toolmanager":
168168
pytest.skip("toolmanager is not implemented for macosx.")
169+
if env["MPLBACKEND"] == "wx":
170+
pytest.skip("wx backend is deprecated; tests failed on appveyor")
169171
proc = _run_helper(_test_interactive_impl,
170172
json.dumps({"toolbar": toolbar}),
171173
timeout=_test_timeout,
@@ -568,6 +570,11 @@ def test_figure_leak_20490(env, time_mem):
568570
# We haven't yet directly identified the leaks so test with a memory growth
569571
# threshold.
570572
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+
571578
if env["MPLBACKEND"] == "macosx" or (
572579
env["MPLBACKEND"] == "tkagg" and sys.platform == 'darwin'
573580
):

lib/matplotlib/tests/test_font_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def test_otf():
7373
assert res == is_opentype_cff_font(f.fname)
7474

7575

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')
7778
def test_get_fontconfig_fonts():
7879
assert len(_get_fontconfig_fonts()) > 1
7980

lib/matplotlib/tests/test_getattr.py

Lines changed: 14 additions & 8 deletions

0 commit comments

Comments
 (0)