From 8dcfc614bdc62e1f569182808f7540e3419f67d7 Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Tue, 30 Jun 2026 16:49:11 -0400 Subject: [PATCH] v.rast.move: Fix import of exception The import of CalledModuleError was wrong, this changes it to the standard import pattern (CalledModuleError is not part of grass.script, but of grass.exceptions). --- src/vector/v.rast.move/tests/test_v_rast_move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/v.rast.move/tests/test_v_rast_move.py b/src/vector/v.rast.move/tests/test_v_rast_move.py index 8414da6676..8e6642524c 100644 --- a/src/vector/v.rast.move/tests/test_v_rast_move.py +++ b/src/vector/v.rast.move/tests/test_v_rast_move.py @@ -3,6 +3,7 @@ import pytest import grass.script as gs +from grass.exceptions import CalledModuleError def test_displacement_result(line_dataset): @@ -61,7 +62,7 @@ def test_nulls_as_zeros(line_dataset): def test_nulls_fail(line_dataset): """Check that an error is generated for nulls""" result = "result_fails" - with pytest.raises(gs.CalledModuleError): + with pytest.raises(CalledModuleError): gs.run_command( "v.rast.move", input=line_dataset.name,