Skip to content

Commit

Permalink
fix test to match Python error message changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Oct 30, 2024
1 parent 0694b9b commit 69614ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/rose-metadata-check/09-custom-macro.t
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ __META_CONFIG__
init_macro envswitch.py < $TEST_SOURCE_DIR/lib/custom_macro_corrupt.py
run_fail "$TEST_KEY" rose metadata-check -C ../config
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" </dev/null
sed -i 's/ expected an indented block .*//' "${TEST_KEY}.err" # error message varies with Python version
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" <<'__ERROR__'
[V] rose.metadata_check.MetadataChecker: issues: 1
namelist:macro_nl=my_macro_var1=macro=envswitch.LogicalTransformer
Could not import envswitch.LogicalTransformer: IndentationError: expected an indented block (envswitch.py, line 33)
Could not import envswitch.LogicalTransformer: IndentationError:
__ERROR__
teardown
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 69614ae

Please sign in to comment.