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