test_doctests

./lib/python/temporal – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/temporal
Test file./lib/python/temporal/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests100
Successful tests94
Failed tests6
Percent successful94%
Test duration0:00:18.550915

Supplementary files

Standard error output (stderr)

... (lines omitted)
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.temporal.temporal_algebra.TemporalAlgebraParser.set_granularity[7]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined


======================================================================
FAIL: build_spatio_temporal_topology_list (grass.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser)
Doctest: grass.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser.build_spatio_temporal_topology_list
----------------------------------------------------------------------
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.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser.build_spatio_temporal_topology_list
  File "etc/python/grass/temporal/temporal_raster_base_algebra.py", line 188, in build_spatio_temporal_topology_list

----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_raster_base_algebra.py", line 237, in grass.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB)
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.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser.build_spatio_temporal_topology_list[7]>", line 1, in <module>
        resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB)
      File "etc/python/grass/temporal/temporal_algebra.py", line 1486, in build_spatio_temporal_topology_list
        tb.build(maplistA, maplistB)
      File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 552, in build
        vector.RTreeSearch2(tree, rect, list_)
    ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_struct_RTree instance instead of LP_struct_RTree
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_raster_base_algebra.py", line 238, in grass.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    for map in resultlist:
        print(map.get_id())
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.temporal.temporal_raster_base_algebra.TemporalRasterBaseAlgebraParser.build_spatio_temporal_topology_list[8]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined


----------------------------------------------------------------------
Ran 100 tests in 17.410s
FAILED (failures=6)