File Shapely-fix-svg-collection-pr1042.patch of Package python-Shapely
From 77879a954d24d1596f986d16ba3eff5e13861164 Mon Sep 17 00:00:00 2001
From: Mike Taves <mwtoews@gmail.com>
Date: Thu, 3 Dec 2020 17:14:34 +1300
Subject: [PATCH] Expand CI and tests to support GEOS 3.9.0beta2
---
.travis.yml | 6 ++---
appveyor.yml | 2 +-
...test_create_inconsistent_dimensionality.py | 10 +++++++-
tests/test_svg.py | 3 ++-
tests/test_wkb.py | 25 ++++++++++++++++++-
5 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/tests/test_svg.py b/tests/test_svg.py
index fcc2679d..dac3e71f 100644
--- a/tests/test_svg.py
+++ b/tests/test_svg.py
@@ -174,7 +174,8 @@ def test_collection(self):
self.assertSVG(GeometryCollection(), '<g />')
# Valid
self.assertSVG(
- Point(7, 3).union(LineString([(4, 2), (8, 4)])),
+ GeometryCollection(
+ [Point(7, 3), 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" '