Skip to content

Commit 7444a98

Browse files
committed
Better message if running on Python < 3.5
1 parent 6572456 commit 7444a98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unit/memleak.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
from __future__ import print_function
44

55
import gc
6-
import tracemalloc
6+
try:
7+
import tracemalloc
8+
except ImportError:
9+
raise ImportError("This script requires Python 3.4 or later")
710

811
import numpy as np
912

0 commit comments

Comments
 (0)