|
8 | 8 | import pytest
|
9 | 9 |
|
10 | 10 | from memray._errors import MemrayCommandError
|
| 11 | +from memray._memray import FileFormat |
11 | 12 | from memray.commands.common import HighWatermarkCommand
|
12 | 13 |
|
13 | 14 |
|
@@ -165,6 +166,7 @@ def test_tracker_and_reporter_interactions_for_peak(self, tmp_path, merge_thread
|
165 | 166 | calls = [
|
166 | 167 | call(os.fspath(result_path), report_progress=True),
|
167 | 168 | call().metadata.has_native_traces.__bool__(),
|
| 169 | + call().metadata.file_format.__eq__(FileFormat.ALL_ALLOCATIONS), |
168 | 170 | call().get_high_watermark_allocation_records(merge_threads=merge_threads),
|
169 | 171 | call().get_memory_snapshots(),
|
170 | 172 | ]
|
@@ -195,6 +197,7 @@ def test_tracker_and_reporter_interactions_for_leak(self, tmp_path, merge_thread
|
195 | 197 | calls = [
|
196 | 198 | call(os.fspath(result_path), report_progress=True),
|
197 | 199 | call().metadata.has_native_traces.__bool__(),
|
| 200 | + call().metadata.file_format.__eq__(FileFormat.ALL_ALLOCATIONS), |
198 | 201 | call().get_leaked_allocation_records(merge_threads=merge_threads),
|
199 | 202 | call().get_memory_snapshots(),
|
200 | 203 | ]
|
@@ -227,6 +230,7 @@ def test_tracker_and_reporter_interactions_for_temporary_allocations(
|
227 | 230 | calls = [
|
228 | 231 | call(os.fspath(result_path), report_progress=True),
|
229 | 232 | call().metadata.has_native_traces.__bool__(),
|
| 233 | + call().metadata.file_format.__eq__(FileFormat.ALL_ALLOCATIONS), |
230 | 234 | call().get_temporary_allocation_records(
|
231 | 235 | threshold=3, merge_threads=merge_threads
|
232 | 236 | ),
|
|
0 commit comments