From d64ee127bea7ae0a1b00306289829761c8ad4d97 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 10 Mar 2023 11:44:52 +0000 Subject: [PATCH] ttFont_test: another test for missing glyph name that doesn't match 'glyph\d+' pattern --- Tests/ttLib/ttFont_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/ttLib/ttFont_test.py b/Tests/ttLib/ttFont_test.py index 962196fa9..a2a61baf2 100644 --- a/Tests/ttLib/ttFont_test.py +++ b/Tests/ttLib/ttFont_test.py @@ -272,3 +272,5 @@ def test_getGlyphID(): assert font.getGlyphID("glyph12345") == 12345 # virtual glyph with pytest.raises(KeyError): font.getGlyphID("non_existent") + with pytest.raises(KeyError): + font.getGlyphID("glyph_prefix_but_invalid_id")