subset_test: catch ImportError instead of ModuleNotFoundError
This commit is contained in:
parent
dbe60eae80
commit
d5dd4d297f
@ -1470,7 +1470,7 @@ def test_subset_svg_missing_lxml(ttf_path):
|
||||
font["SVG "].docList = [('<svg><g id="glyph1"/></svg>', 1, 1)]
|
||||
font.save(ttf_path)
|
||||
|
||||
with pytest.raises(ModuleNotFoundError):
|
||||
with pytest.raises(ImportError):
|
||||
subset.main([str(ttf_path), "--gids=0,1"])
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user