test_g_mremove

./general/g.mremove – test_g_mremove

Test failed

Test filetest_g_mremove
Testsuite./general/g.mremove
StatusFAILED
Return code1
Number of tests3
Successful tests1
Failed tests2
Percent successful33%
Test duration0:00:01.473388

Supplementary files

Standard error output (stderr)

etc/python/grass/lib/gis.py:789: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
etc/python/grass/pygrass/gis/region.py:17: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class Region(object):
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
etc/python/grass/pygrass/vector/geometry.py:302: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class Point(Geo):
etc/python/grass/pygrass/vector/table.py:165: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class Columns(object):
etc/python/grass/pygrass/vector/table.py:572: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class Link(object):
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FF.
======================================================================
FAIL: test_remove_procedure (__main__.GMRemoveTest)
Test that maps are removed only with -f
----------------------------------------------------------------------
Traceback (most recent call last):
  File "general/g.mremove/testsuite/test_g_mremove.py", line 60, in test_remove_procedure
    self.assertModule(module)
  File "etc/python/grass/gunittest/case.py", line 1018, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <g.mremove> module ended with non-zero return code (1)
Called: g.mremove(type=['rast'], pattern='test_map_*,*two')
See the folowing errors:

Description:
 Removes data base element files from the user's current mapset using the search pattern.

Keywords:
 general, map management, remove

Usage:
 g.mremove [-refb] type=datatype[,datatype,...] pattern=string
   [exclude=string] [--help] [--verbose] [--quiet]

Flags:
  -r   Use basic regular expressions instead of wildcards
  -e   Use extended regular expressions instead of wildcards
  -f   Force removal (required for actual deletion of files)
  -b   Remove base raster maps
 --h   Print usage summary
 --v   Verbose module output
 --q   Quiet module output

Parameters:
     type   Data type(s)
            options: rast,rast3d,vect,oldvect,asciivect,icon,labels,sites,
                     region,region3d,group,view3d,all
             rast: raster map(s)
             rast3d: 3D raster map(s)
             vect: vector map(s)
             oldvect: old (GRASS 5.0) vector map(s)
             asciivect: ASCII vector map(s)
             icon: paint icon file(s)
             labels: paint label file(s)
             sites: site list file(s)
             region: region definition(s)
             region3d: 3D region definition(s)
             group: imagery group(s)
             view3d: 3D view parameter(s)
             all: all types
  pattern   Map name search pattern
  exclude   Map name exclusion pattern (default: none)

ERROR: Value <'rast'> out of range for parameter <type>
	Legal range: rast,rast3d,vect,oldvect,asciivect,icon,labels,sites,region,region3d,group,view3d,all


======================================================================
FAIL: test_remove_procedure_exclude (__main__.GMRemoveTest)
Test that exclude does not list excluded maps
----------------------------------------------------------------------
Traceback (most recent call last):
  File "general/g.mremove/testsuite/test_g_mremove.py", line 80, in test_remove_procedure_exclude
    self.assertModule(module)
  File "etc/python/grass/gunittest/case.py", line 1018, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <g.mremove> module ended with non-zero return code (1)
Called: g.mremove(type=['rast'], pattern='test_{apples,oranges}*', exclude='*_small')
See the folowing errors:

Description:
 Removes data base element files from the user's current mapset using the search pattern.

Keywords:
 general, map management, remove

Usage:
 g.mremove [-refb] type=datatype[,datatype,...] pattern=string
   [exclude=string] [--help] [--verbose] [--quiet]

Flags:
  -r   Use basic regular expressions instead of wildcards
  -e   Use extended regular expressions instead of wildcards
  -f   Force removal (required for actual deletion of files)
  -b   Remove base raster maps
 --h   Print usage summary
 --v   Verbose module output
 --q   Quiet module output

Parameters:
     type   Data type(s)
            options: rast,rast3d,vect,oldvect,asciivect,icon,labels,sites,
                     region,region3d,group,view3d,all
             rast: raster map(s)
             rast3d: 3D raster map(s)
             vect: vector map(s)
             oldvect: old (GRASS 5.0) vector map(s)
             asciivect: ASCII vector map(s)
             icon: paint icon file(s)
             labels: paint label file(s)
             sites: site list file(s)
             region: region definition(s)
             region3d: 3D region definition(s)
             group: imagery group(s)
             view3d: 3D view parameter(s)
             all: all types
  pattern   Map name search pattern
  exclude   Map name exclusion pattern (default: none)

ERROR: Value <'rast'> out of range for parameter <type>
	Legal range: rast,rast3d,vect,oldvect,asciivect,icon,labels,sites,region,region3d,group,view3d,all


----------------------------------------------------------------------
Ran 3 tests in 0.432s
FAILED (failures=2)