Skip to content

Commit

Permalink
reset deprecations prior to usage in unit tests (#10545)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Aug 8, 2024
1 parent dfa7d06 commit 3d09872
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/test_deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

@pytest.fixture(scope="function")
def active_deprecations():
deprecations.reset_deprecations()
assert not deprecations.active_deprecations

yield deprecations.active_deprecations
Expand All @@ -14,6 +15,7 @@ def active_deprecations():

@pytest.fixture(scope="function")
def buffered_deprecations():
deprecations.buffered_deprecations.clear()
assert not deprecations.buffered_deprecations

yield deprecations.buffered_deprecations
Expand Down

0 comments on commit 3d09872

Please sign in to comment.