Skip to content

Commit

Permalink
Add a level module fixture that enables tracemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Feb 19, 2025
1 parent 087e7aa commit 0139eb7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@

from .utils import TemporaryWorkingDirectory


@pytest.fixture(scope="module", autouse=True)
def _enable_tracemalloc():
import tracemalloc

tracemalloc.start()
yield
tracemalloc.stop()


sample_info: dict = {
"ip": "1.2.3.4",
"transport": "ipc",
Expand Down

0 comments on commit 0139eb7

Please sign in to comment.