diff --git a/tests/test_codelist.py b/tests/test_codelist.py index 9a574e6c..0a833c02 100644 --- a/tests/test_codelist.py +++ b/tests/test_codelist.py @@ -210,7 +210,7 @@ def test_region_codelist_nonexisting_country_name(): def test_directional_region_codelist_nonexisting_country_name(): """Check that directional regions have defined origin and destination""" - with pytest.raises(ValueError, match="Region 'Germany' not .* 'Austria>Germany'"): + with pytest.raises(ValueError, match="Destination 'Germany' .* 'Austria>Germany'"): RegionCodeList.from_directory( "region", MODULE_TEST_DATA_DIR