Skip to content

Commit 05bb77c

Browse files
committed
Fix typing
1 parent 69d657e commit 05bb77c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/asynchronous/utils_spec_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ async def start(self):
113113
self.task = asyncio.create_task(self.run(), name=self.name)
114114

115115
async def join(self, timeout: int = 0):
116-
await asyncio.wait([self.task], timeout=timeout)
116+
if self.task is not None:
117+
await asyncio.wait([self.task], timeout=timeout)
117118

118119
def is_alive(self):
119120
return not self.stopped

test/utils_spec_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def start(self):
113113
self.task = asyncio.create_task(self.run(), name=self.name)
114114

115115
def join(self, timeout: int = 0):
116-
asyncio.wait([self.task], timeout=timeout)
116+
if self.task is not None:
117+
asyncio.wait([self.task], timeout=timeout)
117118

118119
def is_alive(self):
119120
return not self.stopped

0 commit comments

Comments
 (0)