❌ Test failed
Test | test_doctests |
Testsuite | ./lib/python/pygrass |
Test file | ./lib/python/pygrass/testsuite/test_doctests.py |
Status | FAILED |
Return code | 1 |
Number of tests | 10 |
Successful tests | 7 |
Failed tests | 3 |
Percent successful | 70% |
Test duration | 0:00:01.199907 |
... (lines omitted) AttributeError: 'VectorTopo' object has no attribute 'table' ---------------------------------------------------------------------- File "etc/python/grass/pygrass/utils.py", line 230, in grass.pygrass.utils.get_raster_for_points Failed example: cur = fire.table.execute() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest grass.pygrass.utils.get_raster_for_points[17]>", line 1, in <module> cur = fire.table.execute() AttributeError: 'VectorTopo' object has no attribute 'table' ---------------------------------------------------------------------- File "etc/python/grass/pygrass/utils.py", line 231, in grass.pygrass.utils.get_raster_for_points Failed example: r = cur.fetchall() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest grass.pygrass.utils.get_raster_for_points[18]>", line 1, in <module> r = cur.fetchall() NameError: name 'cur' is not defined ---------------------------------------------------------------------- File "etc/python/grass/pygrass/utils.py", line 232, in grass.pygrass.utils.get_raster_for_points Failed example: r[0] # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest grass.pygrass.utils.get_raster_for_points[19]>", line 1, in <module> r[0] # doctest: +ELLIPSIS NameError: name 'r' is not defined ---------------------------------------------------------------------- File "etc/python/grass/pygrass/utils.py", line 234, in grass.pygrass.utils.get_raster_for_points Failed example: r[1] # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest grass.pygrass.utils.get_raster_for_points[20]>", line 1, in <module> r[1] # doctest: +ELLIPSIS NameError: name 'r' is not defined ---------------------------------------------------------------------- Ran 10 tests in 0.256s FAILED (failures=3)