Skip to content

Commit 13c0d99

Browse files
committed
PyPy doesn't have tracemalloc.
1 parent 1a00b4f commit 13c0d99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import logging
22
import os
3-
import tracemalloc
3+
import platform
4+
5+
6+
if platform.python_implementation() != "PyPy": # pragma: no branch
7+
import tracemalloc
48

59

610
format = "%(asctime)s %(levelname)s %(name)s %(message)s"

0 commit comments

Comments
 (0)