From bf02602a5677651735f6d8dbaca55a9a08cfd884 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 17 Feb 2024 22:41:58 +0200 Subject: [PATCH] Fix "UserWarning: The pointPen needs an identifier kwarg." and DeprecationWarning: The beginPath method needs an identifier kwarg. --- tests/builder/builder_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/builder/builder_test.py b/tests/builder/builder_test.py index 624a79705..f76454fb4 100644 --- a/tests/builder/builder_test.py +++ b/tests/builder/builder_test.py @@ -2390,16 +2390,16 @@ def test_load_kerning_bracket(ufo_module): class _PointDataPen: - def __init__(self): + def __init__(self, **kwargs): self.contours = [] def addPoint(self, pt, segmentType=None, smooth=False, **kwargs): self.contours[-1].append((pt[0], pt[1], segmentType, smooth)) - def beginPath(self): + def beginPath(self, **kwargs): self.contours.append([]) - def endPath(self): + def endPath(self, **kwargs): if not self.contours[-1]: self.contours.pop()