Skip to content

Commit 1aeacba

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR matplotlib#16725: TST/CI: also try to run test_user_fonts_win32 on azure
1 parent a4bb9d3 commit 1aeacba

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,11 @@ def test_user_fonts_linux(tmpdir, monkeypatch):
160160

161161
@pytest.mark.skipif(sys.platform != 'win32', reason='Windows only')
162162
def test_user_fonts_win32():
163-
if not os.environ.get('APPVEYOR', False):
164-
pytest.xfail("This test does only work on appveyor since user fonts "
165-
"are Windows specific and the developer's font directory "
166-
"should remain unchanged.")
163+
if not (os.environ.get('APPVEYOR', False) or
164+
os.environ.get('TF_BUILD', False)):
165+
pytest.xfail("This test should only run on CI (appveyor or azure) "
166+
"as the developer's font directory should remain "
167+
"unchanged.")
167168

168169
font_test_file = 'mpltest.ttf'
169170

0 commit comments

Comments
 (0)