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 aad425c..e1f8ff9 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,7 +81,7 @@ def set_up(yaml_test_file): ], ) def test_expected(test_input, expected): - if sys.flags.optimize: + if not __debug__: if test_input == 'wrong_default_type.yaml': pytest.skip( 'Evaluating optimized type validation cannot be completed when python is optimized'