##// END OF EJS Templates
Fix test_get_exception_only() for Python 3
Jeroen Demeyer -
Show More
@@ -495,7 +495,10 b' class InteractiveShellTestCase(unittest.TestCase):'
495 raise DerivedInterrupt("foo")
495 raise DerivedInterrupt("foo")
496 except KeyboardInterrupt:
496 except KeyboardInterrupt:
497 msg = ip.get_exception_only()
497 msg = ip.get_exception_only()
498 self.assertEqual(msg, 'DerivedInterrupt: foo\n')
498 if sys.version_info[0] <= 2:
499 self.assertEqual(msg, 'DerivedInterrupt: foo\n')
500 else:
501 self.assertEqual(msg, 'IPython.core.tests.test_interactiveshell.DerivedInterrupt: foo\n')
499
502
500 class TestSafeExecfileNonAsciiPath(unittest.TestCase):
503 class TestSafeExecfileNonAsciiPath(unittest.TestCase):
501
504
General Comments 0
You need to be logged in to leave comments. Login now