[GRASS-dev] [GRASS GIS] #2875: Python testsuite failing with UnicodeDecodeError

GRASS GIS trac at osgeo.org
Sun Feb 26 11:41:57 PST 2017


#2875: Python testsuite failing with UnicodeDecodeError
--------------------------+-------------------------
  Reporter:  marisn       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.1
 Component:  Tests        |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+-------------------------

Comment (by wenzeslaus):

 Replying to [comment:7 marisn]:
 > Replying to [comment:4 wenzeslaus]:
 > > Replying to [ticket:2875 marisn]:
 > > > Unfortunately it is not possible to run tests as test suite is
 failing itself...
 > > >
 > > > {{{
 > > >     module.run()
 > > >   File ".../grass/pygrass/modules/interface/module.py", line 713, in
 run
 > > >     module=self.name, errors=stderr)
 > > > }}}
 > >
 > > Since this comes from ''grass.pygrass.modules'', can you try the
 ''Module'' class separately?
 > Can you provide code for testing?

 Please use any PyGRASS documentation to execute a module using the
 ''Module'' class (open an a separate ticket if you can't find it). It
 should be something like (pseudo-code based on the above):

 {{{
 #!python
 module = Module('r.mapcalc', expression='rand_x = rand(1, 200)')
 module.run()
 # An error should occur because we use ''rand()'' without a seed info.
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2875#comment:8>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list