diff --git a/coalib/tests/output/ConsoleInteractorTest.py b/coalib/tests/output/ConsoleInteractorTest.py index a756ec602d..dfc5dad8ec 100644 --- a/coalib/tests/output/ConsoleInteractorTest.py +++ b/coalib/tests/output/ConsoleInteractorTest.py @@ -37,6 +37,7 @@ def setUp(self): def tearDown(self): builtins.__dict__["input"] = self._input + self.uut.close() def test_require_settings(self): self.assertRaises(TypeError, self.uut.acquire_settings, 0) @@ -252,9 +253,9 @@ def test_print_results(self): def test_from_section(self): section = Section("test") - ConsoleInteractor.from_section(section) + ConsoleInteractor.from_section(section).close() section.append(Setting("output", "stderr")) - ConsoleInteractor.from_section(section) + ConsoleInteractor.from_section(section).close() @staticmethod def get_str_from_queue(q):