❌ Test failed
Test | test_doctests |
Testsuite | ./lib/python/temporal |
Test file | ./lib/python/temporal/testsuite/test_doctests.py |
Status | FAILED |
Return code | 1 |
Number of tests | 88 |
Successful tests | 85 |
Failed tests | 3 |
Percent successful | 97% |
Test duration | 0:00:05.010672 |
etc/python/grass/lib/gis.py:801: DeprecationWarning: classic int division ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))), /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/mx/DateTime/DateTime.py:563: DeprecationWarning: classic int division MaxDateTime = DateTime(_sys.maxint / 366 - 1, 12, 31) /usr/lib/python2.7/dist-packages/mx/DateTime/DateTime.py:564: DeprecationWarning: classic int division MinDateTime = DateTime(-_sys.maxint / 366 + 2, 1, 1) /usr/lib/python2.7/dist-packages/psycopg2/__init__.py:67: 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:571: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class AbstractDatasetComparisonKeyStartTime(object): etc/python/grass/temporal/abstract_dataset.py:621: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class AbstractDatasetComparisonKeyEndTime(object): /usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:15: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class weekday(object): /usr/lib/python2.7/dist-packages/dateutil/tz.py:31: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class tzutc(datetime.tzinfo): /usr/lib/python2.7/dist-packages/dateutil/tz.py:54: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class tzoffset(datetime.tzinfo): /usr/lib/python2.7/dist-packages/dateutil/tz.py:83: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class tzlocal(datetime.tzinfo): /usr/lib/python2.7/dist-packages/dateutil/tz.py:152: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class _ttinfo(object): /usr/lib/python2.7/dist-packages/dateutil/tz.py:191: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class tzfile(datetime.tzinfo): /usr/lib/python2.7/dist-packages/dateutil/tz.py:475: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class tzrange(datetime.tzinfo): ........Default TGIS driver / database set to: driver: sqlite database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db etc/python/grass/temporal/core.py:557: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator if grassenv.has_key("TGIS_DISABLE_MAPSET_CHECK"): etc/python/grass/temporal/core.py:563: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator if grassenv.has_key("TGIS_DISABLE_TIMESTAMP_WRITE"): 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 exists. Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_test_doctests/tgis/sqlite.db .....etc/python/grass/temporal/base.py:904: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator if self.D.has_key("modification_time"): ...etc/python/grass/temporal/datetime_math.py:820: DeprecationWarning: classic int division if tz.seconds > 86400 / 2: etc/python/grass/temporal/datetime_math.py:823: DeprecationWarning: classic int division tz = tz.seconds/60 etc/python/grass/temporal/datetime_math.py:821: DeprecationWarning: classic int division tz = (tz.seconds - 86400) / 60 .............FFF.......................................etc/python/grass/temporal/temporal_granularity.py:787: DeprecationWarning: reduce() not supported in 3.x; use functools.reduce() return reduce(gcd, list) ....../usr/lib/python2.7/dist-packages/ply/lex.py:716: DeprecationWarning: the cmp argument is not supported in 3.x f.sort(lambda x,y: cmp(func_code(x[1]).co_firstlineno,func_code(y[1]).co_firstlineno)) /usr/lib/python2.7/dist-packages/ply/lex.py:724: DeprecationWarning: the cmp argument is not supported in 3.x s.sort(lambda x,y: (len(x[1]) < len(y[1])) - (len(x[1]) > len(y[1]))) /usr/lib/python2.7/xml/etree/ElementTree.py:1627: 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 .Generating LALR tables .......Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables Generating LALR tables ..ERROR: Fatal Error in C library server WARNING:root:Needed to restart the libgis server ERROR: Fatal Error in C library server WARNING:root:Needed to restart the libgis server . ====================================================================== FAIL: Raster3DDataset (grass.temporal.space_time_datasets) Doctest: grass.temporal.space_time_datasets.Raster3DDataset ---------------------------------------------------------------------- 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.space_time_datasets.Raster3DDataset File "etc/python/grass/temporal/space_time_datasets.py", line 335, in Raster3DDataset ---------------------------------------------------------------------- File "etc/python/grass/temporal/space_time_datasets.py", line 409, in grass.temporal.space_time_datasets.Raster3DDataset Failed example: r3map.get_name() Expected: 'str3ds_map_test_case' Got: u'str3ds_map_test_case' ====================================================================== FAIL: RasterDataset (grass.temporal.space_time_datasets) Doctest: grass.temporal.space_time_datasets.RasterDataset ---------------------------------------------------------------------- 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.space_time_datasets.RasterDataset File "etc/python/grass/temporal/space_time_datasets.py", line 18, in RasterDataset ---------------------------------------------------------------------- File "etc/python/grass/temporal/space_time_datasets.py", line 90, in grass.temporal.space_time_datasets.RasterDataset Failed example: rmap.get_name() Expected: 'strds_map_test_case' Got: u'strds_map_test_case' ====================================================================== FAIL: VectorDataset (grass.temporal.space_time_datasets) Doctest: grass.temporal.space_time_datasets.VectorDataset ---------------------------------------------------------------------- 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.space_time_datasets.VectorDataset File "etc/python/grass/temporal/space_time_datasets.py", line 671, in VectorDataset ---------------------------------------------------------------------- File "etc/python/grass/temporal/space_time_datasets.py", line 739, in grass.temporal.space_time_datasets.VectorDataset Failed example: vmap.get_name() Expected: 'stvds_map_test_case' Got: u'stvds_map_test_case' ---------------------------------------------------------------------- Ran 88 tests in 3.839s FAILED (failures=3)