Show More
@@ -12,6 +12,7 b'' | |||
|
12 | 12 | # Imports |
|
13 | 13 | #----------------------------------------------------------------------------- |
|
14 | 14 | |
|
15 | import sys | |
|
15 | 16 | import unittest |
|
16 | 17 | from compiler.consts import CO_GENERATOR |
|
17 | 18 | |
@@ -45,7 +46,7 b' class ParametricTestCase(unittest.TestCase):' | |||
|
45 | 46 | except KeyboardInterrupt: |
|
46 | 47 | raise |
|
47 | 48 | except: |
|
48 |
result.addError(self, s |
|
|
49 | result.addError(self, sys.exc_info()) | |
|
49 | 50 | return |
|
50 | 51 | # Test execution |
|
51 | 52 | ok = False |
@@ -56,18 +57,18 b' class ParametricTestCase(unittest.TestCase):' | |||
|
56 | 57 | # We stop the loop |
|
57 | 58 | break |
|
58 | 59 | except self.failureException: |
|
59 |
result.addFailure(self, s |
|
|
60 | result.addFailure(self, sys.exc_info()) | |
|
60 | 61 | except KeyboardInterrupt: |
|
61 | 62 | raise |
|
62 | 63 | except: |
|
63 |
result.addError(self, s |
|
|
64 | result.addError(self, sys.exc_info()) | |
|
64 | 65 | # TearDown |
|
65 | 66 | try: |
|
66 | 67 | self.tearDown() |
|
67 | 68 | except KeyboardInterrupt: |
|
68 | 69 | raise |
|
69 | 70 | except: |
|
70 |
result.addError(self, s |
|
|
71 | result.addError(self, sys.exc_info()) | |
|
71 | 72 | ok = False |
|
72 | 73 | if ok: result.addSuccess(self) |
|
73 | 74 |
General Comments 0
You need to be logged in to leave comments.
Login now