* [gentoo-commits] repo/proj/guru:master commit in: dev-python/svgelements/, dev-python/svgelements/files/
@ 2024-04-12 19:59 Julien Roy
0 siblings, 0 replies; only message in thread
From: Julien Roy @ 2024-04-12 19:59 UTC (permalink / raw
To: gentoo-commits
commit: e7a9388ebd245dcb9570e12d3303d7d47402d42f
Author: Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Fri Apr 12 19:02:24 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Apr 12 19:03:53 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7a9388e
dev-python/svgelements: Add patch to fix tests
Closes: https://bugs.gentoo.org/927876
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>
dev-python/svgelements/files/fix_tests.patch | 20 ++++++++++++++++++++
dev-python/svgelements/svgelements-1.9.6.ebuild | 4 ++++
2 files changed, 24 insertions(+)
diff --git a/dev-python/svgelements/files/fix_tests.patch b/dev-python/svgelements/files/fix_tests.patch
new file mode 100644
index 0000000000..413e29914b
--- /dev/null
+++ b/dev-python/svgelements/files/fix_tests.patch
@@ -0,0 +1,20 @@
+Fix https://bugs.gentoo.org/927876
+--- a/test/test_cubic_bezier.py
++++ b/test/test_cubic_bezier.py
+@@ -79,4 +79,4 @@ class TestElementCubicBezierPoint(unittest.TestCase):
+ p = Path(transform=Matrix(682.657124793113, 0.000000000003, -0.000000000003, 682.657124793113, 257913.248909660178, -507946.354527872754))
+ p += CubicBezier(start=Point(-117.139521365,1480.99923469), control1=Point(-41.342266634,1505.62725567), control2=Point(40.3422666342,1505.62725567), end=Point(116.139521365,1480.99923469))
+ bounds = p.bbox()
+- self.assertNotAlmostEquals(bounds[1], bounds[3], delta=100)
++ self.assertNotAlmostEqual(bounds[1], bounds[3], delta=100)
+--- a/test/test_write.py
++++ b/test/test_write.py
+@@ -24,7 +24,7 @@ class TestElementWrite(unittest.TestCase):
+
+ def test_write_group(self):
+ g = Group()
+- self.assertEquals(g.string_xml(), "<g />")
++ self.assertEqual(g.string_xml(), "<g />")
+
+ def test_write_rect(self):
+ r = Rect("1in", "1in", "3in", "3in", rx="5%")
diff --git a/dev-python/svgelements/svgelements-1.9.6.ebuild b/dev-python/svgelements/svgelements-1.9.6.ebuild
index 458b00fb4e..41407176a8 100644
--- a/dev-python/svgelements/svgelements-1.9.6.ebuild
+++ b/dev-python/svgelements/svgelements-1.9.6.ebuild
@@ -16,6 +16,10 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+PATCHES=(
+ "${FILESDIR}/fix_tests.patch"
+)
+
BDEPEND="
test? (
dev-python/numpy[${PYTHON_USEDEP}]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-12 19:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-12 19:59 [gentoo-commits] repo/proj/guru:master commit in: dev-python/svgelements/, dev-python/svgelements/files/ Julien Roy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox