From dd7dafa0c3e4f5ad832968766ca8cc7bb4f3af7f Mon Sep 17 00:00:00 2001 From: Paul Gesel Date: Fri, 22 Mar 2024 13:09:32 -0700 Subject: [PATCH] use __debug__ Signed-off-by: Paul Gesel --- .../generate_parameter_library_py/test/YAML_parse_error_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'