Changeset 6359063 in rtems-tools for tester/rt/test.py


Ignore:
Timestamp:
Mar 9, 2016, 3:39:43 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
3e9b179
Parents:
4001a74
Message:

Python 2 and python 3 refactor fixes.

Updates #2619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/test.py

    r4001a74 r6359063  
    121121    def reraise(self):
    122122        if self.result is not None:
    123             raise self.result[0](self.result[1]).with_traceback(self.result[2])
     123            with_tb = getattr(self.result[1], 'with_traceback', None)
     124            if with_tb:
     125                raise self.result[1].with_traceback(self.result[2])
     126            raise (self.result[0], self.result[1], self.result[2])
    124127
    125128    def kill(self):
Note: See TracChangeset for help on using the changeset viewer.