Skip to content

Commit

Permalink
Fix test for compatibility with pytest 8.1 (#20225)
Browse files Browse the repository at this point in the history
## Summary & Motivation

Pytest 8.1 was just released and breaks one of our tests, this fixes it.

## How I Tested These Changes

BK
  • Loading branch information
smackesey authored Mar 3, 2024
1 parent e3d4c42 commit dc40710
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,16 +527,15 @@ def single_input_op():


def test_collision_invocations():
with pytest.warns(None) as record:
with warnings.catch_warnings():
warnings.simplefilter("error")

@job
def _():
single_input_op()
single_input_op()
single_input_op()

assert len(record) == 0


def test_alias_invoked(recwarn):
@job
Expand Down

0 comments on commit dc40710

Please sign in to comment.