1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-shapely/20-geos390.patch
2021-01-30 21:28:52 +00:00

32 lines
1.3 KiB
Diff

Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: ignore test failing with geos 3.9.0
Url: https://github.com/Toblerity/Shapely/issues/1079
----
--- a/tests/test_svg.py
+++ b/tests/test_svg.py
@@ -169,24 +169,5 @@ class SvgTestCase(unittest.TestCase):
'stroke-width="2.0" opacity="0.6" d="M 0.0,40.0 L 0.0,0.0 L '
'40.0,40.0 L 40.0,0.0 L 0.0,40.0 z" /></g>')
- def test_collection(self):
- # Empty
- self.assertSVG(GeometryCollection(), '<g />')
- # Valid
- self.assertSVG(
- Point(7, 3).union(LineString([(4, 2), (8, 4)])),
- '<g><circle cx="7.0" cy="3.0" r="3.0" stroke="#555555" '
- 'stroke-width="1.0" fill="#66cc99" opacity="0.6" />'
- '<polyline fill="none" stroke="#66cc99" stroke-width="2.0" '
- 'points="4.0,2.0 8.0,4.0" opacity="0.8" /></g>')
- # Invalid
- self.assertSVG(
- Point(7, 3).union(LineString([(4, 2), (4, 2)])),
- '<g><circle cx="7.0" cy="3.0" r="3.0" stroke="#555555" '
- 'stroke-width="1.0" fill="#ff3333" opacity="0.6" />'
- '<polyline fill="none" stroke="#ff3333" stroke-width="2.0" '
- 'points="4.0,2.0 4.0,2.0" opacity="0.8" /></g>')
-
-
def test_suite():
return unittest.TestLoader().loadTestsFromTestCase(SvgTestCase)