[Bug 721756] Re: FTBFS when building with python 2.7 owing to test faliures
Launchpad Bug Tracker
721756 at bugs.launchpad.net
Sat Feb 19 19:25:11 UTC 2011
This bug was fixed in the package python-shapely - 1.2.1-2ubuntu1
---------------
python-shapely (1.2.1-2ubuntu1) natty; urgency=low
* debian/patches/python-2.7-testfixes.patch: Update test results to account
for changes to conversions from long integers and regular integers to
floating points in python 2.7. (LP: #721756)
-- Sameer Morar <smorar at gmail.com> Sat, 19 Feb 2011 14:57:46 +0200
** Changed in: python-shapely (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/721756
Title:
FTBFS when building with python 2.7 owing to test faliures
Status in “python-shapely” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: python-shapely
The following tests fail when built with python 2.7 owing to changes
in the conversions from long integers and regular integers to floating
points referred to here: http://docs.python.org/dev/whatsnew/2.7.html
======================================================================
FAIL: /tmp/buildd/python-shapely-1.2.1/shapely/tests/Point.txt
Doctest: Point.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 Point.txt
File "/tmp/buildd/python-shapely-1.2.1/shapely/tests/Point.txt", line 0
----------------------------------------------------------------------
File "/tmp/buildd/python-shapely-1.2.1/shapely/tests/Point.txt", line 124, in Point.txt
Failed example:
pa.distance(p)
Expected:
4.1231056256176606
Got:
4.123105625617661
======================================================================
FAIL: /tmp/buildd/python-shapely-1.2.1/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 "/tmp/buildd/python-shapely-1.2.1/shapely/tests/MultiPolygon.txt", line 0
----------------------------------------------------------------------
File "/tmp/buildd/python-shapely-1.2.1/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))]]}
======================================================================
FAIL: /tmp/buildd/python-shapely-1.2.1/shapely/tests/Polygon.txt
Doctest: Polygon.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 Polygon.txt
File "/tmp/buildd/python-shapely-1.2.1/shapely/tests/Polygon.txt", line 0
----------------------------------------------------------------------
File "/tmp/buildd/python-shapely-1.2.1/shapely/tests/Polygon.txt", line 105, in Polygon.txt
Failed example:
polygon.__geo_interface__
Expected:
{'type': 'Polygon', 'coordinates': (((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (2.0, -1.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': 'Polygon', 'coordinates': (((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (2.0, -1.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)))}
----------------------------------------------------------------------
More information about the Ubuntu-sponsors
mailing list