We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cac2ee commit 2e2bb75Copy full SHA for 2e2bb75
test/test_pooling_base.py
@@ -94,8 +94,11 @@ def alive(self):
94
95
def join(self):
96
self.thread.join(5)
97
- assert not self.alive, ("Greenlet timeout" if self.use_greenlets
98
- else "Thread timeout")
+ if self.use_greenlets:
+ msg = "Greenlet timeout"
99
+ else:
100
+ msg = "Thread timeout"
101
+ assert not self.alive, msg
102
self.thread = None
103
104
def run(self):
0 commit comments