Skip to content

Commit 0139eb7

Browse files
committed
Add a level module fixture that enables tracemalloc
1 parent 087e7aa commit 0139eb7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_connect.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919

2020
from .utils import TemporaryWorkingDirectory
2121

22+
23+
@pytest.fixture(scope="module", autouse=True)
24+
def _enable_tracemalloc():
25+
import tracemalloc
26+
27+
tracemalloc.start()
28+
yield
29+
tracemalloc.stop()
30+
31+
2232
sample_info: dict = {
2333
"ip": "1.2.3.4",
2434
"transport": "ipc",

0 commit comments

Comments
 (0)