test_parameter

./lib/python/pygrass/modules/interface – test_parameter

Test failed

Testtest_parameter
Testsuite./lib/python/pygrass/modules/interface
Test file./lib/python/pygrass/modules/interface/testsuite/test_parameter.py
StatusFAILED
Return code1
Number of tests17
Successful tests16
Failed tests1
Percent successful94%
Test duration0:00:00.844763

Supplementary files

Standard error output (stderr)

etc/python/grass/pygrass/modules/interface/parameter.py:29: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  msg = req % (param.name, param.typedesc, ptype, value, exc.message)
...........E.....
======================================================================
ERROR: test_single_string_file (__main__.TestCheckValueFunction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/modules/interface/testsuite/test_parameter.py", line 223, in test_single_string_file
    self.assertTupleEqual((value, value), _check_value(param, value))
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
    check_string(value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
    raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <name> require a string, <type 'unicode'> instead is provided: u'elev'

----------------------------------------------------------------------
Ran 17 tests in 0.003s
FAILED (errors=1)