Skip to content

Commit 50dbb0b

Browse files
committed
Disable GC.
1 parent ca87768 commit 50dbb0b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

python/pytest-selfie/pytest_selfie/plugin.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,13 @@ def __all_tests_finished(self):
337337
if tests == SnapshotFileProgress.TERMINATED:
338338
raise ValueError(f"Snapshot for {self.test_file} already terminated!")
339339
if self.file is not None:
340-
stale_snapshot_indices = WithinTestGC.find_stale_snapshots_within(
341-
self.file.snapshots,
342-
tests,
343-
find_test_methods_that_didnt_run(self.test_file, tests),
344-
)
340+
# TODO: figure out GC
341+
stale_snapshot_indices = []
342+
# stale_snapshot_indices = WithinTestGC.find_stale_snapshots_within(
343+
# self.file.snapshots,
344+
# tests,
345+
# find_test_methods_that_didnt_run(self.test_file, tests),
346+
# )
345347
if stale_snapshot_indices or self.file.was_set_at_test_time:
346348
self.file.remove_all_indices(stale_snapshot_indices)
347349
snapshot_path = self.system._layout.snapshotfile_for_testfile(

0 commit comments

Comments
 (0)