Skip to content

Commit

Permalink
Remove testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
winterjung committed Jan 5, 2018
1 parent 8205734 commit 6a8ed79
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/test_halo.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,25 +341,6 @@ def test_stop_and_persist_no_dict_or_options(self):
spinner.start()
spinner.stop_and_persist('not dict')

def test_spinner_keyboard_interrupt(self):
"""Test Halo with keyboard interrupt.
"""
spinner = Halo(text='foo', spinner='dots', stream=self._stream)

with self.assertRaises(KeyboardInterrupt):
spinner.start()
time.sleep(1)
pid = os.getpid()
os.kill(pid, signal.SIGINT)

output = self._get_test_output()
self.assertEqual(output[0], '{0} foo'.format(frames[0]))
self.assertEqual(output[1], '{0} foo'.format(frames[1]))
self.assertEqual(output[2], '{0} foo'.format(frames[2]))

pattern = re.compile(r'(✖|×) foo', re.UNICODE)
self.assertRegexpMatches(output[-1], pattern)

def tearDown(self):
"""Clean up things after every test.
"""
Expand Down

0 comments on commit 6a8ed79

Please sign in to comment.