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

Artur Rona ari-tczew at ubuntu.com
Sat Feb 19 17:23:12 UTC 2011


** Changed in: python-shapely (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: python-shapely (Ubuntu)
     Assignee: (unassigned) => Artur Rona (ari-tczew)

-- 
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:
  In Progress

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