./lib/python/pygrass/modules/grid – test_doctests

Test failed

Test filetest_doctests
Return code1
Number of tests1
Successful tests0
Failed tests1
Percent successful0%
Test duration0:00:01.021650

Supplementary files

Standard error output (stderr)

etc/python/grass/lib/gis.py:807: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.

 Lists available GRASS data base files of the user-specified data type optionally using the search pattern.

 general, map management, list

 g.list [-iretmpf] type=datatype[,datatype,...] [pattern=string]
   [exclude=string] [mapset=name[,name,...]] [separator=character]
   [region=name] [output=name] [--overwrite] [--help] [--verbose]
   [--quiet] [--ui]

  -i   Ignore case
  -r   Use basic regular expressions instead of wildcards
  -e   Use extended regular expressions instead of wildcards
  -t   Print data types
  -m   Print fully-qualified map names (including mapsets)
  -p   Pretty printing in human readable format
  -f   Verbose listing (also list map titles)
 --o   Allow output files to overwrite existing files
 --h   Print usage summary
 --v   Verbose module output
 --q   Quiet module output
 --ui  Force launching GUI dialog

       type   Data type(s)
              options: raster,3draster,vector,oldvector,asciivector,labels,
               raster: raster map(s)
               3draster: 3D raster map(s)
               vector: vector map(s)
               oldvector: old  (GRASS 5.0) vector map(s)
               asciivector: ASCII vector map(s)
               labels: paint label file(s)
               region: region definition(s)
               group: imagery group(s)
               all: all types
    pattern   Map name search pattern (default: all)
    exclude   Map name exclusion pattern (default: none)
     mapset   Name of mapset to list (default: current search path)
               '.' for current mapset; '*' for all mapsets in location
  separator   Field separator
               Special characters: pipe, comma, space, tab, newline
              default: newline
     region   Name of saved region for map search (default: not restricted)
               '.' for current region; '*' for default region
     output   Name for output file
               If not given or '-' then standard output

ERROR: Required parameter <type> not set:
	(Data type(s))
FAIL: MetaModule (grass.pygrass.modules.shortcuts)
Doctest: grass.pygrass.modules.shortcuts.MetaModule
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.pygrass.modules.shortcuts.MetaModule
  File "etc/python/grass/pygrass/modules/shortcuts.py", line 14, in MetaModule

File "etc/python/grass/pygrass/modules/shortcuts.py", line 23, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
    g_list.inputs.type = 'rast'
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.pygrass.modules.shortcuts.MetaModule[4]>", line 1, in <module>
        g_list.inputs.type = 'rast'
      File "etc/python/grass/pygrass/modules/interface/typedict.py", line 30, in __setattr__
        self[key].value = value
      File "etc/python/grass/pygrass/modules/interface/parameter.py", line 183, in _set_value
        self._value, self._rawvalue = _check_value(self, value)
      File "etc/python/grass/pygrass/modules/interface/parameter.py", line 91, in _check_value
        raise ValueError(must_val % (param.name, param.values))
    ValueError: The Parameter <type>, must be one of the following values: ['raster', '3draster', 'vector', 'oldvector', 'asciivector', 'labels', 'region', 'group', 'all']
File "etc/python/grass/pygrass/modules/shortcuts.py", line 25, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
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.pygrass.modules.shortcuts.MetaModule[6]>", line 1, in <module>
      File "etc/python/grass/pygrass/modules/interface/module.py", line 734, in run
        module=self.name, errors=stderr)
      File "etc/python/grass/exceptions/__init__.py", line 68, in __init__
        msg = _("Module run %s %s ended with error") % (module, code)
    TypeError: 'list' object is not callable
File "etc/python/grass/pygrass/modules/shortcuts.py", line 27, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
    g_list.outputs.stdout                         # doctest: +ELLIPSIS

Ran 1 test in 0.098s
FAILED (failures=1)