❌ Test failed
Test | test_doctests |
Testsuite | ./lib/python/pygrass/vector |
Test file | ./lib/python/pygrass/vector/testsuite/test_doctests.py |
Status | FAILED |
Return code | 1 |
Number of tests | 99 |
Successful tests | 96 |
Failed tests | 3 |
Percent successful | 97% |
Test duration | 0:00:02.276672 |
... (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.138s
FAILED (failures=3)