From 9841247cfb89c96565612241aecfd137e71a5bf9 Mon Sep 17 00:00:00 2001
From: Mateusz Klimaszewski <mk.klimaszewski@gmail.com>
Date: Tue, 3 Nov 2020 14:32:11 +0100
Subject: [PATCH] Remove unused patching in test.

(cherry picked from commit 825c151fffb188aa9fe96f6092840cfda4334997)
---
 tests/test_predict.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/tests/test_predict.py b/tests/test_predict.py
index 42bc493..2a56bd9 100644
--- a/tests/test_predict.py
+++ b/tests/test_predict.py
@@ -1,8 +1,6 @@
 import os
 import pathlib
-import shutil
 import unittest
-from unittest import mock
 
 import combo.data as data
 import combo.predict as predict
@@ -14,16 +12,6 @@ class PredictionTest(unittest.TestCase):
     TESTS_ROOT = PROJECT_ROOT / "tests"
     FIXTURES_ROOT = TESTS_ROOT / "fixtures"
 
-    def setUp(self) -> None:
-        def _cleanup_archive_dir_without_logging(path: str):
-            if os.path.exists(path):
-                shutil.rmtree(path)
-
-        self.patcher = mock.patch(
-            "allennlp.models.archival._cleanup_archive_dir", _cleanup_archive_dir_without_logging
-        )
-        self.mock_cleanup_archive_dir = self.patcher.start()
-
     def test_prediction_are_equal_given_the_same_input_in_different_form(self):
         # given
         raw_sentence = "Test."
-- 
GitLab