Skip to content

Commit

Permalink
fix python version check
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
  • Loading branch information
achille-roussel committed Jun 17, 2024
1 parent 60c2312 commit c053298
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def dispatch_test_init(self, reg: Registry) -> str:
self.sockets = [sock]
self.uvicorn = uvicorn.Server(config)
self.runner = Runner()
if sys.version_info > (3, 8):
if sys.version_info >= (3, 9):
self.event = asyncio.Event()
else:
self.event = asyncio.Event(loop=self.runner.get_loop())
Expand Down
2 changes: 1 addition & 1 deletion tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def dispatch_test_init(self, reg: Registry) -> str:
self.aiohttp = Server(host, port, Dispatch(reg))
self.aioloop.run(self.aiohttp.start())

if sys.version_info > (3, 8):
if sys.version_info >= (3, 9):
self.aiowait = asyncio.Event()
else:
self.aiowait = asyncio.Event(loop=self.aioloop.get_loop())
Expand Down

0 comments on commit c053298

Please sign in to comment.