equal
deleted
inserted
replaced
28 import os |
28 import os |
29 import sys |
29 import sys |
30 import unittest |
30 import unittest |
31 import time |
31 import time |
32 |
32 |
|
33 import six |
33 import pytest |
34 import pytest |
34 import wx |
35 import wx |
35 import ddt |
36 import ddt |
36 |
37 |
37 import conftest |
38 import conftest |
69 self.ProcessEvents() |
70 self.ProcessEvents() |
70 |
71 |
71 def CheckForErrors(self): |
72 def CheckForErrors(self): |
72 if self.exc_info is not None: |
73 if self.exc_info is not None: |
73 # reraise catched previously exception |
74 # reraise catched previously exception |
74 raise self.exc_info[0], self.exc_info[1], self.exc_info[2] |
75 exc_type = self.exc_info[0] |
|
76 exc_value = self.exc_info[1] |
|
77 exc_traceback = self.exc_info[2] |
|
78 six.reraise(exc_type, exc_value, exc_traceback) |
75 |
79 |
76 def ProcessEvents(self): |
80 def ProcessEvents(self): |
77 for dummy in range(0, 30): |
81 for dummy in range(0, 30): |
78 self.CheckForErrors() |
82 self.CheckForErrors() |
79 wx.Yield() |
83 wx.Yield() |