From 16ecd53b713f7e52ed9290733ada3d68f9989d17 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Mon, 13 Mar 2023 13:37:57 +0545 Subject: [PATCH] tests: remove gc.collect() from windows (#9159) --- tests/conftest.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 10d93bc67c..dbaabba916 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,3 @@ -import gc import json import os import sys @@ -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)