[GRASS-dev] [GRASS GIS] #3737: Testsuite gunittest/multirunner.py: TypeError: str expected, not bytes

GRASS GIS trac at osgeo.org
Wed Jan 23 07:48:45 PST 2019


#3737: Testsuite gunittest/multirunner.py: TypeError: str expected, not bytes
--------------------------------+-------------------------
 Reporter:  AnikaBettge         |      Owner:  grass-dev@…
     Type:  defect              |     Status:  new
 Priority:  normal              |  Milestone:  7.8.0
Component:  Python              |    Version:  svn-trunk
 Keywords:  Python3, testsuite  |        CPU:  x86-64
 Platform:  Linux               |
--------------------------------+-------------------------
 Tzhe multirunner in trunk currently fails with Python3:

 {{{
 (grasspy3) ✔ ~/src/grass-7.7.svn/testsuite/examples
 11:41 $ bash test_framework_GRASS_GIS_with_NC.sh
 test_framework_GRASS_GIS_with_NC_AB.conf
 --2019-01-23 13:42:48--
 https://grass.osgeo.org/sampledata/north_carolina/nc_spm_08_grass7.tar.gz
 ...

 Starting GRASS GIS...
 Cleaning up temporary files...
 Executing <sh /home/abettge/grassdata/tests-grassdata/tmp_rename.sh> ...
 WARNUNG: <basin> already exists. File not copied.
 WARNUNG: <boundary> already exists. File not copied.
 ...
 Execution of <sh /home/abettge/grassdata/tests-grassdata/tmp_rename.sh>
 finished.
 Cleaning up default sqlite database ...
 Cleaning up temporary files...
 Traceback (most recent call last):
   File
 "/home/abettge/src/grass-7.7.svn/lib/python/gunittest/multirunner.py",
 line 125, in <module>
     sys.exit(main())
   File
 "/home/abettge/src/grass-7.7.svn/lib/python/gunittest/multirunner.py",
 line 76, in main
     os.environ['GISBASE'] = gisbase
   File "/home/abettge/src/grass-7.7.svn/grasspy3/lib/python3.5/os.py",
 line 730, in __setitem__
     value = self.encodevalue(value)
   File "/home/abettge/src/grass-7.7.svn/grasspy3/lib/python3.5/os.py",
 line 798, in encode
     raise TypeError("str expected, not %s" % type(value).__name__)
 TypeError: str expected, not bytes
 }}}

 Version:

 {{{
 grass77 --config svn_revision
 74007
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3737>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list