File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ def test_user_fonts_linux(tmpdir, monkeypatch):
137
137
138
138
# Precondition: the test font should not be available
139
139
fonts = findSystemFonts ()
140
- assert not any (font_test_file in font for font in fonts )
140
+ if any (font_test_file in font for font in fonts ):
141
+ pytest .skip (f'{ font_test_file } already exists in system fonts' )
141
142
142
143
# Prepare a temporary user font directory
143
144
user_fonts_dir = tmpdir .join ('fonts' )
@@ -167,7 +168,8 @@ def test_user_fonts_win32():
167
168
168
169
# Precondition: the test font should not be available
169
170
fonts = findSystemFonts ()
170
- assert not any (font_test_file in font for font in fonts )
171
+ if any (font_test_file in font for font in fonts ):
172
+ pytest .skip (f'{ font_test_file } already exists in system fonts' )
171
173
172
174
user_fonts_dir = MSUserFontDirectories [0 ]
173
175
You can’t perform that action at this time.
0 commit comments