##// END OF EJS Templates
move custom exception at module....
Matthias Bussonnier -
Show More
@@ -50,6 +50,9 b' ip = get_ipython()'
50 50 # Tests
51 51 #-----------------------------------------------------------------------------
52 52
53 class DerivedInterrupt(KeyboardInterrupt):
54 pass
55
53 56 class InteractiveShellTestCase(unittest.TestCase):
54 57 def test_naked_string_cells(self):
55 58 """Test that cells with only naked strings are fully executed"""
@@ -502,8 +505,6 b' class InteractiveShellTestCase(unittest.TestCase):'
502 505 msg = ip.get_exception_only()
503 506 self.assertEqual(msg, 'KeyboardInterrupt\n')
504 507
505 class DerivedInterrupt(KeyboardInterrupt):
506 pass
507 508 try:
508 509 raise DerivedInterrupt("foo")
509 510 except KeyboardInterrupt:
General Comments 0
You need to be logged in to leave comments. Login now