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 tests98
Successful tests93
Failed tests5
Percent successful95%
Test duration0:00:05.935221

Supplementary files

Standard error output (stderr)

... (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 4.539s
FAILED (failures=5)