summaryrefslogtreecommitdiffstats
path: root/Lib/tracemalloc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tracemalloc.py')
-rw-r--r--Lib/tracemalloc.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/tracemalloc.py b/Lib/tracemalloc.py
index 7780eca..d51f161 100644
--- a/Lib/tracemalloc.py
+++ b/Lib/tracemalloc.py
@@ -380,10 +380,6 @@ class Snapshot:
if cumulative and key_type not in ('lineno', 'filename'):
raise ValueError("cumulative mode cannot by used "
"with key type %r" % key_type)
- if cumulative and self.traceback_limit < 2:
- raise ValueError("cumulative mode needs tracebacks with at least "
- "2 frames, traceback limit is %s"
- % self.traceback_limit)
stats = {}
tracebacks = {}