❌ 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 | 98 |
Successful tests | 93 |
Failed tests | 5 |
Percent successful | 95% |
Test duration | 0:00:07.279303 |
... (lines omitted)
'year'
======================================================================
FAIL: gran_singular_unit (grass.temporal.temporal_granularity)
Doctest: grass.temporal.temporal_granularity.gran_singular_unit
----------------------------------------------------------------------
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_granularity.gran_singular_unit
File "etc/python/grass/temporal/temporal_granularity.py", line 1022, in gran_singular_unit
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_granularity.py", line 1032, in grass.temporal.temporal_granularity.gran_singular_unit
Failed example:
tgis.gran_singular_unit('1 month')
Expected:
month
Got:
'month'
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_granularity.py", line 1035, in grass.temporal.temporal_granularity.gran_singular_unit
Failed example:
tgis.gran_singular_unit('2 months')
Expected:
month
Got:
'month'
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_granularity.py", line 1038, in grass.temporal.temporal_granularity.gran_singular_unit
Failed example:
tgis.gran_singular_unit('6 seconds')
Expected:
second
Got:
'second'
----------------------------------------------------------------------
File "etc/python/grass/temporal/temporal_granularity.py", line 1041, in grass.temporal.temporal_granularity.gran_singular_unit
Failed example:
tgis.gran_singular_unit('1 year')
Expected:
year
Got:
'year'
----------------------------------------------------------------------
Ran 98 tests in 5.784s
FAILED (failures=5)