Skip to content

Commit

Permalink
use __debug__
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <[email protected]>
  • Loading branch information
pac48 committed Mar 22, 2024
1 parent 9f0e5a6 commit dd7dafa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit dd7dafa

Please sign in to comment.