Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed May 24, 2024
1 parent 1f88e87 commit c9eeb0c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/bleak/backends/winrt/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
_CoUninitialize.argtypes = []


@pytest.fixture(autouse=True)
def run_around_tests():
# reset global state
try:
delattr(allow_sta, "_allowed")
except AttributeError:
pass

yield


@pytest.mark.asyncio
async def test_assert_mta_no_init():
"""Test device_path_from_characteristic_path."""
Expand Down

0 comments on commit c9eeb0c

Please sign in to comment.