Skip to content

Commit

Permalink
add close dataset for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Jun 23, 2024
1 parent ddb6b25 commit 2e30e53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycromanager/test/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ def test_abort_with_no_events(launch_mm_headless, setup_data_folder):
with Acquisition(setup_data_folder, 'test_abort_with_no_events', show_display=False) as acq:
acq.abort()
assert not mmc.is_sequence_running()
acq.get_dataset().close()

def test_abort_from_external(launch_mm_headless, setup_data_folder):
"""
Expand All @@ -485,6 +486,8 @@ def test_abort_from_external(launch_mm_headless, setup_data_folder):
acq.acquire(event)
time.sleep(5)

acq.get_dataset().close()

def test_abort_sequenced_zstack(launch_mm_headless, setup_data_folder):
"""
Test that a hardware sequenced acquisition can be aborted mid-sequence
Expand Down

0 comments on commit 2e30e53

Please sign in to comment.