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

GRASS GIS trac at osgeo.org
Wed Jan 30 04:52:43 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
Resolution:               |   Keywords:  Python3, testsuite
       CPU:  x86-64       |   Platform:  Linux
--------------------------+--------------------------------

Comment (by AnikaBettge):

 {{{
 Cleaning up default sqlite database ...
 Cleaning up temporary files...
 raster3d_lib_test from ./lib/raster3d failed (3 tests failed)
 test_assertions from ./lib/python/gunittest failed (3 tests failed)
 test_checkers from ./lib/python/gunittest failed (1 test failed)
 test_gmodules from ./lib/python/gunittest failed (4 tests failed)
 test_assertions_vect from ./lib/python/gunittest failed (7 tests failed)
 test_assertions_rast3d from ./lib/python/gunittest failed (2 tests failed)
 test_module_assertions from ./lib/python/gunittest failed (2 tests failed)
 test_doctests from ./lib/python/gunittest failed (2 tests failed)
 unittests_temporal_raster_conditionals from ./lib/python/temporal failed
 (50 tests failed)
 unittests_temporal_raster_conditionals_complement_else from
 ./lib/python/temporal failed (4 tests failed)
 unittests_temporal_vector_algebra from ./lib/python/temporal failed (14
 tests failed)
 unittests_temporal_conditionals from ./lib/python/temporal failed (34
 tests failed)
 unittests_temporal_raster_algebra_grs from ./lib/python/temporal failed
 (13 tests failed)
 unittests_temporal_algebra_grs from ./lib/python/temporal failed (6 tests
 failed)
 unittests_temporal_raster_algebra from ./lib/python/temporal failed (80
 tests failed)
 unittests_temporal_raster3d_algebra from ./lib/python/temporal failed (4
 tests failed)
 unittests_temporal_raster_algebra_equal_ts from ./lib/python/temporal
 failed (10 tests failed)
 unittests_temporal_algebra from ./lib/python/temporal failed (39 tests
 failed)
 unittests_temporal_raster_algebra_spatial_topology from
 ./lib/python/temporal failed (12 tests failed)
 test_doctests from ./lib/python/temporal failed (15 tests failed)
 unittests_temporal_algebra_mixed_stds from ./lib/python/temporal failed (9
 tests failed)
 test_doctests from ./lib/python/script failed (1 test failed)
 Traceback (most recent call last):
   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
     "__main__", mod_spec)
   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
     exec(code, run_globals)
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/main.py", line 178, in <module>
     sys.exit(main())
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/main.py", line 174, in main
     results_dir=results_dir)
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/invoker.py", line 237, in run_in_location
     gisdbase=gisdbase, location=location)
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/invoker.py", line 193, in _run_test_module
     self._file_anonymizer.anonymize([stdout_path, stderr_path])
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/reporters.py", line 103, in anonymize
     replace_in_file(filename, path + path_end, '')
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/reporters.py", line 61, in replace_in_file
     for line in old_file:
   File "/home/abettge/src/grass-7.7.svn/grasspy3/lib/python3.6/codecs.py",
 line 321, in decode
     (result, consumed) = self._buffer_decode(data, self.errors, final)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 439:
 invalid continuation byte
 GRASS Location <other_location> does not exist in GRASS Database
 </home/abettge/grassdata/tests-grassdata>
 Traceback (most recent call last):
   File
 "/home/abettge/src/grass-7.7.svn/lib/python/gunittest/multireport.py",
 line 28, in <module>
     from grass.gunittest.checkers import text_to_keyvalue
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/gunittest/checkers.py", line 18, in <module>
     from grass.script.core import KeyValue
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/script/__init__.py", line 5, in <module>
     from .core   import *
   File "/home/abettge/src/grass-7.7.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/script/core.py", line 38, in <module>
     gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"),
 'locale'))
   File
 "/home/abettge/src/grass-7.7.svn/grasspy3/lib/python3.6/posixpath.py",
 line 80, in join
     a = os.fspath(a)
 TypeError: expected str, bytes or os.PathLike object, not NoneType
 }}}

 grass77 --config svn_revision
 74046M

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



More information about the grass-dev mailing list