Skip to content

Commit

Permalink
tests: remove gc.collect() from windows (#9159)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Mar 13, 2023
1 parent 612f303 commit 16ecd53
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import gc
import json
import os
import sys
Expand Down Expand Up @@ -244,17 +243,3 @@ def run(
return stage

return run


@pytest.fixture(autouse=True)
def gc_collect_on_dvc_close_on_win(mocker):
from dvc.repo import Repo

close = Repo.close

def wrapped(repo):
close(repo)
gc.collect()

if os.name == "nt":
mocker.patch("dvc.repo.Repo.close", wrapped)

0 comments on commit 16ecd53

Please sign in to comment.