8000 Merge pull request #16768 from meeseeksmachine/auto-backport-of-pr-16… · matplotlib/matplotlib@5acc66f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5acc66f

Browse files
authored
Merge pull request #16768 from meeseeksmachine/auto-backport-of-pr-16725-on-v3.2.x
Backport PR #16725 on branch v3.2.x (TST/CI: also try to run test_user_fonts_win32 on azure)
2 parents 7a96a9f + 1aeacba commit 5acc66f

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)
0