forked from pool/python-fontParts
- Build PEP517 wheel - Clean old flavor directives - Add fontParts-pr720-py312tests.patch gh#robotools/fontParts#720 for python312 compatibility OBS-URL: https://build.opensuse.org/request/show/1154444 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fontParts?expand=0&rev=19
27 lines
973 B
Diff
27 lines
973 B
Diff
From d7484cd98051aa1588683136da0bb99eac31523b Mon Sep 17 00:00:00 2001
|
|
From: Martin Weinelt <hexa@darmstadt.ccc.de>
|
|
Date: Wed, 7 Feb 2024 15:03:48 +0100
|
|
Subject: [PATCH] Replace remaining usage of assertEquals with assertEqual
|
|
|
|
This fixes the tests on Python 3.12, where assertEquals was removed.
|
|
---
|
|
Lib/fontParts/test/test_glyph.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Lib/fontParts/test/test_glyph.py b/Lib/fontParts/test/test_glyph.py
|
|
index 1cad7814..20d01ae6 100644
|
|
--- a/Lib/fontParts/test/test_glyph.py
|
|
+++ b/Lib/fontParts/test/test_glyph.py
|
|
@@ -1356,9 +1356,9 @@ def test_isEmpty_false_component(self):
|
|
|
|
def test_removeOverlap(self):
|
|
glyph = self.getGlyph_generic()
|
|
- self.assertEquals(len(glyph), 2)
|
|
+ self.assertEqual(len(glyph), 2)
|
|
glyph.removeOverlap()
|
|
- self.assertEquals(len(glyph), 1)
|
|
+ self.assertEqual(len(glyph), 1)
|
|
|
|
|
|
def test_generator(test_name, metric, value):
|