Skip to content

Commit 7c2ddde

Browse files
committed
removing control prints
1 parent 07914bb commit 7c2ddde

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

tests.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222

2323
class TestNesting(unittest.TestCase):
2424
handlers = (
25-
(SignalTimeout,
26-
ThreadingTimeout,
27-
)
25+
(
26+
SignalTimeout,
27+
ThreadingTimeout,
28+
)
2829
if os.name == "posix"
2930
else (ThreadingTimeout,)
3031
)
@@ -73,20 +74,10 @@ def test_nested_long_inner(self):
7374

7475
def test_nested_success(self):
7576
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)
8077
self.assertEqual(
81-
result, "success"
78+
self.check_nest_swallow(5.0, 10.0, 1.0, handler), "success"
8279
)
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")
9081

9182
def test_nested_long_outer(self):
9283
for handler in self.handlers:

0 commit comments

Comments
 (0)