Public bug reported: 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)))} ---------------------------------------------------------------------- ** Affects: python-shapely (Ubuntu) Importance: Undecided Status: Confirmed ** Tags: patch patch-forwarded-upstream -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/721756 Title: FTBFS when building with python 2.7 owing to test faliures -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs