From c9eefae63d2e456296e32da177749b392dd37b35 Mon Sep 17 00:00:00 2001 From: kxxt Date: Wed, 14 Jun 2023 15:26:56 +0800 Subject: [PATCH] test: allow WEBSOCKETS_TESTS_TIMEOUT_FACTOR to be float --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 4e9ac9f0e..2937a2f15 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -23,7 +23,7 @@ # Unit for timeouts. May be increased on slow machines by setting the # WEBSOCKETS_TESTS_TIMEOUT_FACTOR environment variable. -MS = 0.001 * int(os.environ.get("WEBSOCKETS_TESTS_TIMEOUT_FACTOR", "1")) +MS = 0.001 * float(os.environ.get("WEBSOCKETS_TESTS_TIMEOUT_FACTOR", "1")) # PyPy has a performance penalty for this test suite. if platform.python_implementation() == "PyPy": # pragma: no cover