Skip to content

Commit c1279dc

Browse files
authored
Fix broken tests due to pytest-asyncio update (#1246)
1 parent 483b93d commit c1279dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/common/beamlines/test_beamline_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020

2121
@pytest.fixture(autouse=True)
22-
def flush_event_loop_on_finish(event_loop):
22+
def flush_event_loop_on_finish():
23+
event_loop = asyncio.get_event_loop()
2324
# wait for the test function to complete
2425
yield None
2526

tests/devices/unit_tests/i03/test_undulator_dcm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717

1818
@pytest.fixture(autouse=True)
19-
def flush_event_loop_on_finish(event_loop):
19+
def flush_event_loop_on_finish():
20+
event_loop = asyncio.get_event_loop()
2021
# wait for the test function to complete
2122
yield None
2223

0 commit comments

Comments
 (0)