From 9f0e5a677318922bad8c23aeb1e5e9ee3ed7ff0e Mon Sep 17 00:00:00 2001 From: Paul Gesel Date: Fri, 22 Mar 2024 12:49:17 -0700 Subject: [PATCH] fix test on rolling CI Signed-off-by: Paul Gesel --- .../test/YAML_parse_error_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generate_parameter_library_py/generate_parameter_library_py/test/YAML_parse_error_test.py b/generate_parameter_library_py/generate_parameter_library_py/test/YAML_parse_error_test.py index 7afb837..aad425c 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/test/YAML_parse_error_test.py +++ b/generate_parameter_library_py/generate_parameter_library_py/test/YAML_parse_error_test.py @@ -81,6 +81,11 @@ def set_up(yaml_test_file): ], ) def test_expected(test_input, expected): + if sys.flags.optimize: + if test_input == 'wrong_default_type.yaml': + pytest.skip( + 'Evaluating optimized type validation cannot be completed when python is optimized' + ) with pytest.raises(expected) as e: yaml_test_file = test_input set_up(yaml_test_file)