test_doctests

./lib/python/pygrass/vector – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass/vector
Test file./lib/python/pygrass/vector/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests99
Successful tests96
Failed tests3
Percent successful97%
Test duration0:00:02.289912

Supplementary files

Standard error output (stderr)

... (lines omitted)
Expected:
    u'SELECT cat,name,value FROM vector_doctest_map WHERE value > 0 ORDER BY cat;'
Got:
    u'SELECT cat,name FROM newvect WHERE value > 0 ORDER BY cat;'


======================================================================
FAIL: viter (grass.pygrass.vector.VectorTopo)
Doctest: grass.pygrass.vector.VectorTopo.viter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.vector.VectorTopo.viter
  File "etc/python/grass/pygrass/vector/__init__.py", line 24, in viter

----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 39, in grass.pygrass.vector.VectorTopo.viter
Failed example:
    areas[:3]
Expected:
    [Area(1), Area(2), Area(3)]
Got:
    []
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 47, in grass.pygrass.vector.VectorTopo.viter
Failed example:
    for area in areas[:3]:
        print(area, area.area())
Expected:
    Area(1) 12.0
    Area(2) 8.0
    Area(4) 8.0
Got nothing
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 54, in grass.pygrass.vector.VectorTopo.viter
Failed example:
    for area in areas:
        print(area.centroid().cat)
Expected:
    3
    3
    3
    3
Got nothing


----------------------------------------------------------------------
Ran 99 tests in 1.088s
FAILED (failures=3)