Skip to content

Commit

Permalink
ConsoleInteractorTest: Close interactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sils committed Apr 8, 2015
1 parent 5ec5529 commit 32ba7ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coalib/tests/output/ConsoleInteractorTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down

1 comment on commit 32ba7ad

@Makman2
Copy link
Member

@Makman2 Makman2 commented on 32ba7ad Apr 8, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bit tricky, but ack

Please sign in to comment.