* Mònica Ramírez Arceda <mon...@probeta.net>, 2011-12-15, 12:54:
======================================================================
FAIL: 
/build/python-shapely-6luht3/python-shapely-1.2.10/shapely/tests/MultiPolygon.txt
Doctest: MultiPolygon.txt
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/usr/lib/python2.7/doctest.py", line 2166, in runTest
   raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for MultiPolygon.txt
 File 
"/build/python-shapely-6luht3/python-shapely-1.2.10/shapely/tests/MultiPolygon.txt",
 line 0

----------------------------------------------------------------------
File 
"/build/python-shapely-6luht3/python-shapely-1.2.10/shapely/tests/MultiPolygon.txt",
 line 53, in MultiPolygon.txt
Failed example:
   geom.__geo_interface__
Expected:
   {'type': 'MultiPolygon', 'coordinates': [[((0.0, 0.0), (0.0, 1.0), (1.0, 
1.0), (1.0, 0.0), (0.0, 0.0)), ((0.10000000000000001, 0.10000000000000001), 
(0.10000000000000001, 0.20000000000000001), (0.20000000000000001, 
0.20000000000000001), (0.20000000000000001, 0.10000000000000001), 
(0.10000000000000001, 0.10000000000000001))]]}
Got:
   {'type': 'MultiPolygon', 'coordinates': [[((0.0, 0.0), (0.0, 1.0), (1.0, 
1.0), (1.0, 0.0), (0.0, 0.0)), ((0.1, 0.1), (0.1, 0.2), (0.2, 0.2), (0.2, 0.1), 
(0.1, 0.1))]]}


----------------------------------------------------------------------
Ran 57 tests in 0.276s

Apparently this is fixed upstream:
https://github.com/sgillies/shapely/commit/07f651929f025a0cab7020038e2ff235c85804c7

As a side note, it's slightly worrisome that this bug was discovered so late, even though Python 2.7 has been a supported version since March. It'd nice if tests could be run against all supported Python versions, not only the default one.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to