test_doctests

./lib/python/pygrass – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass
Test file./lib/python/pygrass/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests10
Successful tests7
Failed tests3
Percent successful70%
Test duration0:00:01.158570

Supplementary files

Standard error output (stderr)

... (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.248s
FAILED (failures=3)