Skip to content

Commit

Permalink
fix test on rolling CI
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <paulgesel@gmail.com>
  • Loading branch information
pac48 committed Mar 22, 2024
1 parent 8733d7a commit e12f9d6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e12f9d6

Please sign in to comment.