Skip to content

Commit

Permalink
simplify warnings assertion code
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
  • Loading branch information
evgeni and ekohl committed Jan 29, 2025
1 parent de1119e commit 250eca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ def assert_no_warnings(run):

# check for task level warnings
event_warnings = [warning for warning in event.get('event_data', {}).get('res', {}).get('warnings', []) if warning not in IGNORED_WARNINGS]
assert [] == event_warnings, str(event_warnings)
assert not event_warnings

0 comments on commit 250eca8

Please sign in to comment.