test_doctests stderr

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:14: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:21: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
/usr/lib/python2.7/dist-packages/numpy/random/__init__.py:99: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from .mtrand import *
etc/python/grass/pygrass/raster/history.py:13: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/__init__.py:9: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from mxDateTime import *
/usr/lib/python2.7/dist-packages/psycopg2/__init__.py:50: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
etc/python/grass/temporal/abstract_dataset.py:569: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyStartTime(object):
etc/python/grass/temporal/abstract_dataset.py:619: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyEndTime(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:10: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class weekday(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:41: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class relativedelta(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:48: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzutc(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:73: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzoffset(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:104: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzlocal(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:175: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class _ttinfo(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:215: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzfile(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:507: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzrange(datetime.tzinfo):
.....F..Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_test_doctests/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_test_doctests/tgis/sqlite.db
........ERROR: Ohh no no no!
WARNING: Needed to restart the messenger server
ERROR: Ohh no no no!
....etc/python/grass/temporal/datetime_math.py:879: DeprecationWarning: classic int division
  if tz.seconds > 86400 / 2:
etc/python/grass/temporal/datetime_math.py:882: DeprecationWarning: classic int division
  tz = tz.seconds/60
etc/python/grass/temporal/datetime_math.py:880: DeprecationWarning: classic int division
  tz = (tz.seconds - 86400) / 60
...WARNING: Needed to restart the messenger server
..............................F................................../usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
.F..FF..F..ERROR: Fatal Error in C library server
WARNING:root:Needed to restart the libgis server, caller: Server check thread
ERROR: Fatal Error in C library server
WARNING:root:Needed to restart the libgis server, caller: Server check thread
.
======================================================================
FAIL: resample_maplist_by_granularity (grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset)
Doctest: grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
----------------------------------------------------------------------
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
  File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1093, in resample_maplist_by_granularity

----------------------------------------------------------------------
File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1150, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,0,8,1)
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[3]>", line 1, in <module>
        grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,0,8,1)
      File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1253, in resample_maplist_by_granularity
        tb.build(gap_list, maps)
      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/abstract_space_time_dataset.py", line 1151, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    for map_list in grans:
       print(map_list[0].get_id(), map_list[0].get_temporal_extent_as_tuple())
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[4]>", line 1, in <module>
        for map_list in grans:
    NameError: name 'grans' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1169, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,0,16,2)
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[12]>", line 1, in <module>
        grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,0,16,2)
      File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1253, in resample_maplist_by_granularity
        tb.build(gap_list, maps)
      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/abstract_space_time_dataset.py", line 1170, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    for map_list in grans:
       print(map_list[0].get_id(), map_list[0].get_temporal_extent_as_tuple())
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[13]>", line 1, in <module>
        for map_list in grans:
    NameError: name 'grans' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1188, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,0,16,2)
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[21]>", line 1, in <module>
        grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,0,16,2)
      File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1253, in resample_maplist_by_granularity
        tb.build(gap_list, maps)
      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/abstract_space_time_dataset.py", line 1189, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    for map_list in grans:
       print(map_list[0].get_id(), map_list[0].get_temporal_extent_as_tuple())
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[22]>", line 1, in <module>
        for map_list in grans:
    NameError: name 'grans' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1207, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,datetime(2000,1,1),datetime(2001,4,1),"1 month")
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[30]>", line 1, in <module>
        grans = tgis.AbstractSpaceTimeDataset.resample_maplist_by_granularity(maps,datetime(2000,1,1),datetime(2001,4,1),"1 month")
      File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 1253, in resample_maplist_by_granularity
        tb.build(gap_list, maps)
      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/abstract_space_time_dataset.py", line 1208, in grass.temporal.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity
Failed example:
    for map_list in grans:
       print(map_list[0].get_id(), map_list[0].get_temporal_extent_as_tuple())
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.abstract_space_time_dataset.AbstractSpaceTimeDataset.resample_maplist_by_granularity[31]>", line 1, in <module>
        for map_list in grans:
    NameError: name 'grans' is not defined


======================================================================
FAIL: SpatioTemporalTopologyBuilder (grass.temporal.spatio_temporal_relationships)
Doctest: grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
----------------------------------------------------------------------
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
  File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 34, in SpatioTemporalTopologyBuilder

----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 96, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA, mapsB, None)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[6]>", line 1, in <module>
        tb.build(mapsA, mapsB, None)
      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/spatio_temporal_relationships.py", line 98, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        if map.get_equal():
            relations = map.get_equal()
            print("Map %s has equal relation to map %s"%(map.get_name(),
                  relations[0].get_name()))
Expected:
    Map a0 has equal relation to map b0
    Map a1 has equal relation to map b1
    Map a2 has equal relation to map b2
    Map a3 has equal relation to map b3
Got nothing
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 108, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsB:
        if map.get_equal():
            relations = map.get_equal()
            print("Map %s has equal relation to map %s"%(map.get_name(),
                  relations[0].get_name()))
Expected:
    Map b0 has equal relation to map a0
    Map b1 has equal relation to map a1
    Map b2 has equal relation to map a2
    Map b3 has equal relation to map a3
Got nothing
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 132, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA, mapsB, None)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[13]>", line 1, in <module>
        tb.build(mapsA, mapsB, None)
      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/spatio_temporal_relationships.py", line 134, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        print(map.get_temporal_extent_as_tuple())
        m = map.get_temporal_relations()
        for key in m.keys():
            if key not in ["NEXT", "PREV"]:
                print((key, m[key][0].get_temporal_extent_as_tuple()))
Expected:
    (0, 1)
    ('PRECEDES', (1, 2))
    (1, 2)
    ('PRECEDES', (2, 3))
    ('EQUAL', (1, 2))
    (2, 3)
    ('FOLLOWS', (1, 2))
    ('PRECEDES', (3, 4))
    ('EQUAL', (2, 3))
    (3, 4)
    ('FOLLOWS', (2, 3))
    ('EQUAL', (3, 4))
    ('PRECEDES', (4, 5))
Got:
    (0, 1)
    (1, 2)
    (2, 3)
    (3, 4)
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 171, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA, mapsB, None)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[19]>", line 1, in <module>
        tb.build(mapsA, mapsB, None)
      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/spatio_temporal_relationships.py", line 173, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        print(map.get_temporal_extent_as_tuple())
        m = map.get_temporal_relations()
        for key in m.keys():
            if key not in ["NEXT", "PREV"]:
                print((key, m[key][0].get_temporal_extent_as_tuple()))
Expected:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2001, 1, 1, 0, 0))
    ('PRECEDES', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0)))
    (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0))
    ('PRECEDES', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('EQUAL', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0)))
    (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0))
    ('FOLLOWS', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0)))
    ('PRECEDES', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('EQUAL', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0))
    ('FOLLOWS', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('EQUAL', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('PRECEDES', (datetime.datetime(2004, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
Got:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2001, 1, 1, 0, 0))
    (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0))
    (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0))
    (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0))
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 210, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA, mapsB, None)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[25]>", line 1, in <module>
        tb.build(mapsA, mapsB, None)
      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/spatio_temporal_relationships.py", line 212, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        print(map.get_temporal_extent_as_tuple())
        m = map.get_temporal_relations()
        for key in m.keys():
            if key not in ["NEXT", "PREV"]:
                print((key, m[key][0].get_temporal_extent_as_tuple()))
Expected:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2001, 1, 1, 0, 0))
    ('DURING', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('PRECEDES', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0))
    ('DURING', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('PRECEDES', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0))
    ('PRECEDES', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)))
    ('FINISHES', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('DURING', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0))
    ('FOLLOWS', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('DURING', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('FINISHES', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)))
Got:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2001, 1, 1, 0, 0))
    (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0))
    (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0))
    (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0))
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 254, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA, mapsB, None)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[31]>", line 1, in <module>
        tb.build(mapsA, mapsB, None)
      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/spatio_temporal_relationships.py", line 256, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        print(map.get_temporal_extent_as_tuple())
        m = map.get_temporal_relations()
        for key in m.keys():
            if key not in ["NEXT", "PREV"]:
                print((key, m[key][0].get_temporal_extent_as_tuple()))
Expected:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0))
    ('OVERLAPS', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('DURING', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('PRECEDES', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0))
    ('OVERLAPS', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    ('PRECEDES', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)))
    ('FINISHES', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('DURING', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0))
    ('OVERLAPS', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)))
    ('OVERLAPPED', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
    ('FINISHES', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('DURING', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0))
    ('OVERLAPPED', (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0)))
    ('DURING', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    ('FINISHES', (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0)))
    ('STARTS', (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)))
    ('FOLLOWS', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0)))
Got:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2002, 1, 1, 0, 0))
    (datetime.datetime(2001, 1, 1, 0, 0), datetime.datetime(2003, 1, 1, 0, 0))
    (datetime.datetime(2002, 1, 1, 0, 0), datetime.datetime(2004, 1, 1, 0, 0))
    (datetime.datetime(2003, 1, 1, 0, 0), datetime.datetime(2005, 1, 1, 0, 0))
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 303, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA, mapsB, None)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[37]>", line 1, in <module>
        tb.build(mapsA, mapsB, None)
      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/spatio_temporal_relationships.py", line 305, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        print(map.get_temporal_extent_as_tuple())
        m = map.get_temporal_relations()
        for key in m.keys():
            if key not in ["NEXT", "PREV"]:
                print((key, m[key][0].get_temporal_extent_as_tuple()))
Expected:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2000, 1, 1, 0, 0, 2))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    ('PRECEDES', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
    (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
    ('PRECEDES', (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5)))
    ('EQUAL', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5)))
    ('OVERLAPPED', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    ('PRECEDES', (datetime.datetime(2000, 1, 1, 0, 0, 4), datetime.datetime(2000, 1, 1, 0, 0, 6)))
    ('EQUAL', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
    (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 4), datetime.datetime(2000, 1, 1, 0, 0, 6)))
    ('FOLLOWS', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    ('OVERLAPPED', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
    ('EQUAL', (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5)))
Got:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2000, 1, 1, 0, 0, 2))
    (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3))
    (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4))
    (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5))
----------------------------------------------------------------------
File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 338, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    tb.build(mapsA)
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.spatio_temporal_relationships.SpatioTemporalTopologyBuilder[42]>", line 1, in <module>
        tb.build(mapsA)
      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/spatio_temporal_relationships.py", line 340, in grass.temporal.spatio_temporal_relationships.SpatioTemporalTopologyBuilder
Failed example:
    for map in mapsA:
        print(map.get_temporal_extent_as_tuple())
        m = map.get_temporal_relations()
        for key in m.keys():
            if key not in ["NEXT", "PREV"]:
                print((key, m[key][0].get_temporal_extent_as_tuple()))
Expected:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2000, 1, 1, 0, 0, 2))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    ('PRECEDES', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
    (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
    ('OVERLAPPED', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2000, 1, 1, 0, 0, 2)))
    ('PRECEDES', (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5)))
    (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4))
    ('OVERLAPS', (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5)))
    ('FOLLOWS', (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2000, 1, 1, 0, 0, 2)))
    ('OVERLAPPED', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5))
    ('FOLLOWS', (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3)))
    ('OVERLAPPED', (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4)))
Got:
    (datetime.datetime(2000, 1, 1, 0, 0), datetime.datetime(2000, 1, 1, 0, 0, 2))
    (datetime.datetime(2000, 1, 1, 0, 0, 1), datetime.datetime(2000, 1, 1, 0, 0, 3))
    (datetime.datetime(2000, 1, 1, 0, 0, 2), datetime.datetime(2000, 1, 1, 0, 0, 4))
    (datetime.datetime(2000, 1, 1, 0, 0, 3), datetime.datetime(2000, 1, 1, 0, 0, 5))


======================================================================
FAIL: build_spatio_temporal_topology_list (grass.temporal.temporal_algebra.TemporalAlgebraParser)
Doctest: grass.temporal.temporal_algebra.TemporalAlgebraParser.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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
  File "etc/python/grass/temporal/temporal_algebra.py", line 1323, in build_spatio_temporal_topology_list

----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1363, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['EQUAL'])
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[6]>", line 1, in <module>
        resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['EQUAL'])
      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_algebra.py", line 1364, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    for map in resultlist:
        if map.get_equal():
            relations = map.get_equal()
            print("Map %s has equal relation to map %s"%(map.get_name(),
                  relations[0].get_name()))
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[7]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1379, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['DURING'])
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[8]>", line 1, in <module>
        resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['DURING'])
      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_algebra.py", line 1380, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    print(resultlist)
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[9]>", line 1, in <module>
        print(resultlist)
    NameError: name 'resultlist' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1396, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['starts','during'])
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[13]>", line 1, in <module>
        resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['starts','during'])
      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_algebra.py", line 1397, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    for map in resultlist:
        if map.get_starts():
            relations = map.get_starts()
            print("Map %s has start relation to map %s"%(map.get_name(),
                  relations[0].get_name()))
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[14]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1412, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    for map in resultlist:
        if map.get_during():
            relations = map.get_during()
            print("Map %s has during relation to map %s"%(map.get_name(),
                  relations[0].get_name()))
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[15]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1460, in grass.temporal.temporal_algebra.TemporalAlgebraParser.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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[22]>", 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_algebra.py", line 1461, in grass.temporal.temporal_algebra.TemporalAlgebraParser.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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[23]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1468, in grass.temporal.temporal_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list
Failed example:
    resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['during'])
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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[24]>", line 1, in <module>
        resultlist = l.build_spatio_temporal_topology_list(mapsA, mapsB, ['during'])
      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_algebra.py", line 1469, in grass.temporal.temporal_algebra.TemporalAlgebraParser.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_algebra.TemporalAlgebraParser.build_spatio_temporal_topology_list[25]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined


======================================================================
FAIL: perform_temporal_selection (grass.temporal.temporal_algebra.TemporalAlgebraParser)
Doctest: grass.temporal.temporal_algebra.TemporalAlgebraParser.perform_temporal_selection
----------------------------------------------------------------------
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_algebra.TemporalAlgebraParser.perform_temporal_selection
  File "etc/python/grass/temporal/temporal_algebra.py", line 1642, in perform_temporal_selection

----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1678, in grass.temporal.temporal_algebra.TemporalAlgebraParser.perform_temporal_selection
Failed example:
    resultlist = l.perform_temporal_selection(mapsA, mapsB, ['EQUAL'],
                                              False)
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_algebra.TemporalAlgebraParser.perform_temporal_selection[6]>", line 2, in <module>
        False)
      File "etc/python/grass/temporal/temporal_algebra.py", line 1704, in perform_temporal_selection
        assign_val = assign_val)
      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_algebra.py", line 1680, in grass.temporal.temporal_algebra.TemporalAlgebraParser.perform_temporal_selection
Failed example:
    for map in resultlist:
        if map.get_equal():
            relations = map.get_equal()
            print("Map %s has equal relation to map %s"%(map.get_name(),
                  relations[0].get_name()))
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_algebra.TemporalAlgebraParser.perform_temporal_selection[7]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1690, in grass.temporal.temporal_algebra.TemporalAlgebraParser.perform_temporal_selection
Failed example:
    resultlist = l.perform_temporal_selection(mapsA, mapsB, ['EQUAL'],
                                              True)
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_algebra.TemporalAlgebraParser.perform_temporal_selection[8]>", line 2, in <module>
        True)
      File "etc/python/grass/temporal/temporal_algebra.py", line 1709, in perform_temporal_selection
        assign_val = assign_val)
      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_algebra.py", line 1692, in grass.temporal.temporal_algebra.TemporalAlgebraParser.perform_temporal_selection
Failed example:
    for map in resultlist:
        if not map.get_equal():
            print("Map %s has no equal relation to mapset mapsB"%(map.get_name()))
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_algebra.TemporalAlgebraParser.perform_temporal_selection[9]>", line 1, in <module>
        for map in resultlist:
    NameError: name 'resultlist' is not defined


======================================================================
FAIL: set_granularity (grass.temporal.temporal_algebra.TemporalAlgebraParser)
Doctest: grass.temporal.temporal_algebra.TemporalAlgebraParser.set_granularity
----------------------------------------------------------------------
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_algebra.TemporalAlgebraParser.set_granularity
  File "etc/python/grass/temporal/temporal_algebra.py", line 1726, in set_granularity

----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_algebra.py", line 1756, in grass.temporal.temporal_algebra.TemporalAlgebraParser.set_granularity
Failed example:
    resultlist = p.set_granularity(mapsA, mapsB, toperator = "u", topolist = ["during"])
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_algebra.TemporalAlgebraParser.set_granularity[6]>", line 1, in <module>
        resultlist = p.set_granularity(mapsA, mapsB, toperator = "u", topolist = ["during"])
      File "etc/python/grass/temporal/temporal_algebra.py", line 1788, in set_granularity
        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_algebra.py", line 1757, in grass.temporal.temporal_algebra.TemporalAlgebraParser.set_granularity
Failed example:
    for map in resultlist:
        start,end,unit = map.get_relative_time()
        print(map.get_id() + ' - start: ' + str(start) + ' end: ' + str(end))
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_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)