Skip to content

Commit 9294a88

Browse files
committed
TST/CI: also try to run test_user_fonts_win32 on azure
1 parent d7ba944 commit 9294a88

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
@@ -156,10 +156,11 @@ def test_user_fonts_linux(tmpdir, monkeypatch):
156156

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

164165
font_test_file = 'mpltest.ttf'
165166

0 commit comments

Comments
 (0)