Skip to content

Commit c9eefae

Browse files
kxxtaaugustin
authored andcommitted
test: allow WEBSOCKETS_TESTS_TIMEOUT_FACTOR to be float
1 parent 1b10ca1 commit c9eefae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# Unit for timeouts. May be increased on slow machines by setting the
2525
# WEBSOCKETS_TESTS_TIMEOUT_FACTOR environment variable.
26-
MS = 0.001 * int(os.environ.get("WEBSOCKETS_TESTS_TIMEOUT_FACTOR", "1"))
26+
MS = 0.001 * float(os.environ.get("WEBSOCKETS_TESTS_TIMEOUT_FACTOR", "1"))
2727

2828
# PyPy has a performance penalty for this test suite.
2929
if platform.python_implementation() == "PyPy": # pragma: no cover

0 commit comments

Comments
 (0)