[Bug 721756] [NEW] FTBFS when building with python 2.7 owing to test faliures

Launchpad Bug Tracker 721756 at bugs.launchpad.net
Sat Feb 19 13:03:57 UTC 2011


You have been subscribed to a public bug by Sameer Morar (smorar):

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
-- 
FTBFS when building with python 2.7 owing to test faliures
https://bugs.launchpad.net/bugs/721756
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.




More information about the Ubuntu-sponsors mailing list