File: geos-3.9.0.patch

package info (click to toggle)
python-shapely 1.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,512 kB
  • sloc: python: 10,669; makefile: 98; sh: 70
file content (18 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Update tests for GEOS 3.9.0.
Author: Mike Taves <mwtoews@gmail.com>
Origin: https://github.com/Toblerity/Shapely/commit/611a0b3b2047bf8a49db32dc4b30684a10f5b6eb
Bug: https://github.com/Toblerity/Shapely/pull/1042
Bug-Debian: https://bugs.debian.org/978326

--- a/tests/test_svg.py
+++ b/tests/test_svg.py
@@ -174,7 +174,8 @@ class SvgTestCase(unittest.TestCase):
         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" '