Back to index

python3.2  3.2.2
Public Member Functions
test.test_raise.TestTraceback Class Reference

List of all members.

Public Member Functions

def test_sets_traceback
def test_accepts_traceback

Detailed Description

Definition at line 173 of file

Member Function Documentation

Definition at line 182 of file

00183     def test_accepts_traceback(self):
00184         tb = get_tb()
00185         try:
00186             raise IndexError().with_traceback(tb)
00187         except IndexError as e:
00188             self.assertNotEqual(e.__traceback__, tb)
00189             self.assertEqual(e.__traceback__.tb_next, tb)
00190         else:
00191   "No exception raised")

Here is the call graph for this function:

Definition at line 174 of file

00175     def test_sets_traceback(self):
00176         try:
00177             raise IndexError()
00178         except IndexError as e:
00179             self.assertIsInstance(e.__traceback__, types.TracebackType)
00180         else:
00181   "No exception raised")

Here is the call graph for this function:

The documentation for this class was generated from the following file: