We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c7cf9d commit dc45243Copy full SHA for dc45243
1 file changed
tests/test_connect.py
@@ -18,6 +18,21 @@
18
19
from .utils import TemporaryWorkingDirectory
20
21
+
22
+@pytest.fixture(scope="module", autouse=True)
23
+def _enable_tracemalloc():
24
+ try:
25
+ import tracemalloc
26
+ except ModuleNotFoundError:
27
+ # pypy
28
+ tracemalloc = None
29
+ if tracemalloc is not None:
30
+ tracemalloc.start()
31
+ yield
32
33
+ tracemalloc.stop()
34
35
36
sample_info: dict = {
37
"ip": "1.2.3.4",
38
"transport": "ipc",
0 commit comments