diff --git a/Tests/ttLib/tables/_g_l_y_f_test.py b/Tests/ttLib/tables/_g_l_y_f_test.py index 71627b82b..4f38d0cb1 100644 --- a/Tests/ttLib/tables/_g_l_y_f_test.py +++ b/Tests/ttLib/tables/_g_l_y_f_test.py @@ -391,10 +391,11 @@ class GlyfTableTest(unittest.TestCase): font["hmtx"].metrics = {".notdef": (100, 0)} font["head"] = newTable("head") font["head"].unitsPerEm = 1000 - self.assertEqual( - font["glyf"].getPhantomPoints(".notdef", font, 0), - [(0, 0), (100, 0), (0, 0), (0, -1000)], - ) + with pytest.deprecated_call(): + self.assertEqual( + font["glyf"].getPhantomPoints(".notdef", font, 0), + [(0, 0), (100, 0), (0, 0), (0, -1000)], + ) class GlyphTest: diff --git a/Tests/ttLib/ttGlyphSet_test.py b/Tests/ttLib/ttGlyphSet_test.py index 2579fc1c4..6a459be80 100644 --- a/Tests/ttLib/ttGlyphSet_test.py +++ b/Tests/ttLib/ttGlyphSet_test.py @@ -144,7 +144,8 @@ class TTGlyphSetTest(object): assert list(glyphset.keys()) == [".notdef", "I"] assert "I" in glyphset - assert glyphset.has_key("I") # we should really get rid of this... + with pytest.deprecated_call(): + assert glyphset.has_key("I") # we should really get rid of this... assert len(glyphset) == 2 diff --git a/Tests/varLib/instancer/instancer_test.py b/Tests/varLib/instancer/instancer_test.py index b913b78f5..499f9d4f0 100644 --- a/Tests/varLib/instancer/instancer_test.py +++ b/Tests/varLib/instancer/instancer_test.py @@ -51,7 +51,8 @@ def fvarAxes(): def _get_coordinates(varfont, glyphname): # converts GlyphCoordinates to a list of (x, y) tuples, so that pytest's # assert will give us a nicer diff - return list(varfont["glyf"].getCoordinatesAndControls(glyphname, varfont)[0]) + with pytest.deprecated_call(): + return list(varfont["glyf"].getCoordinatesAndControls(glyphname, varfont)[0]) class InstantiateGvarTest(object):