diff --git a/tests/func/test_repro.py b/tests/func/test_repro.py index c9beb777bb..99eb24d345 100644 --- a/tests/func/test_repro.py +++ b/tests/func/test_repro.py @@ -175,8 +175,9 @@ def test_nested(self): Stage.load(self.dvc, error_stage_path), ] - with self.assertRaises(StagePathAsOutputError): - self.dvc.reproduce(error_stage_path) + with patch.object(self.dvc, "_reset"): # to prevent `stages` resetting + with self.assertRaises(StagePathAsOutputError): + self.dvc.reproduce(error_stage_path) def test_similar_paths(self): # File structure: