|
22 | 22 |
|
23 | 23 | class TestNesting(unittest.TestCase): |
24 | 24 | handlers = ( |
25 | | - (SignalTimeout, |
26 | | - ThreadingTimeout, |
27 | | - ) |
| 25 | + ( |
| 26 | + SignalTimeout, |
| 27 | + ThreadingTimeout, |
| 28 | + ) |
28 | 29 | if os.name == "posix" |
29 | 30 | else (ThreadingTimeout,) |
30 | 31 | ) |
@@ -73,20 +74,10 @@ def test_nested_long_inner(self): |
73 | 74 |
|
74 | 75 | def test_nested_success(self): |
75 | 76 | for handler in self.handlers: |
76 | | - start_time = time.time() |
77 | | - result = self.check_nest_swallow(5.0, 10.0, 1.0, handler) |
78 | | - duration = time.time() - start_time |
79 | | - print(" execution took", duration, "for ", handler) |
80 | 77 | self.assertEqual( |
81 | | - result, "success" |
| 78 | + self.check_nest_swallow(5.0, 10.0, 1.0, handler), "success" |
82 | 79 | ) |
83 | | - start_time = time.time() |
84 | | - result = self.check_nest(5.0, 10.0, 1.0, handler) |
85 | | - duration = time.time() - start_time |
86 | | - print(" execution took", duration, "for ", handler) |
87 | | - self.assertEqual(result, "success") |
88 | | - |
89 | | - |
| 80 | + self.assertEqual(self.check_nest(5.0, 10.0, 1.0, handler), "success") |
90 | 81 |
|
91 | 82 | def test_nested_long_outer(self): |
92 | 83 | for handler in self.handlers: |
|
0 commit comments