[GRASS-git] [OSGeo/grass] 191f39: tests: Use more env for session isolation (#5969)

Vaclav Petras noreply at github.com
Thu Jun 26 03:08:36 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 191f39f622be3bad5b8002d8a65a0197d11eeb1c
      https://github.com/OSGeo/grass/commit/191f39f622be3bad5b8002d8a65a0197d11eeb1c
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    M general/g.mapset/tests/conftest.py
    M general/g.mapset/tests/g_mapset_test.py
    M general/g.mapsets/tests/conftest.py
    M general/g.mapsets/tests/g_mapsets_list_format_test.py
    M python/grass/script/setup.py
    M python/grass/script/tests/grass_script_core_get_commands.py

  Log Message:
  -----------
  tests: Use more env for session isolation (#5969)

In clear cases, pass a copy of os.environ to grass.script.setup.init instead of modifying the os.environ (and modifying it for all following tests).

There are couple complex cases which are not covered here (global/subprocess tests of grass.script.init, GridModule, grass.jupyter).



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list