Skip to content

Commit

Permalink
Add teardown steep for example benchamark (#311)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Marconato <[email protected]>
  • Loading branch information
Czaki and LucaMarconato authored Oct 3, 2024
1 parent 9b8bb4a commit 7d49c23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmarks/benchmark_qt_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ def time_create_widget(self) -> None:

def time_layer_added(self) -> None:
self.viewer.add_layer(self.image)

def teardown(self) -> None:
self.viewer.close()

0 comments on commit 7d49c23

Please sign in to comment.