Skip to content

Commit 7dbb76d

Browse files
committed
Fix bm_tornado_http on Python 3.9 and newer
1 parent a041ab2 commit 7dbb76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperformance/benchmarks/bm_tornado_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def run_client():
9393
# https://bugs.python.org/issue37373
9494
# https://github.com/python/pyperformance/issues/61
9595
# https://github.com/tornadoweb/tornado/pull/2686
96-
if sys.platform == 'win32' and sys.version_info[:2] == (3, 8):
96+
if sys.platform == 'win32' and sys.version_info[:2] >= (3, 8):
9797
import asyncio
9898
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
9999

0 commit comments

Comments
 (0)