tests/tools/test_application.py
changeset 2419 c081dabc0f63
parent 1961 b4a1ba9dbaf3
child 3328 01682a34a558
--- a/tests/tools/test_application.py	Tue Oct 02 18:08:49 2018 +0300
+++ b/tests/tools/test_application.py	Wed Oct 03 11:44:57 2018 +0300
@@ -30,6 +30,7 @@
 import unittest
 import time
 
+import six
 import pytest
 import wx
 import ddt
@@ -71,7 +72,10 @@
     def CheckForErrors(self):
         if self.exc_info is not None:
             # reraise catched previously exception
-            raise self.exc_info[0], self.exc_info[1], self.exc_info[2]
+            exc_type = self.exc_info[0]
+            exc_value = self.exc_info[1]
+            exc_traceback = self.exc_info[2]
+            six.reraise(exc_type, exc_value, exc_traceback)
 
     def ProcessEvents(self):
         for dummy in range(0, 30):