From a754e7dbbe03a8d0051424fed5e28f74f86436c6 Mon Sep 17 00:00:00 2001 From: mhchia Date: Fri, 6 Sep 2019 17:59:39 +0800 Subject: [PATCH] Add the missing tests.constants --- tests/constants.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/constants.py diff --git a/tests/constants.py b/tests/constants.py new file mode 100644 index 0000000..3d2b3b7 --- /dev/null +++ b/tests/constants.py @@ -0,0 +1,4 @@ +# Just a arbitrary large number. +# It is used when calling `MplexStream.read(MAX_READ_LEN)`, +# to avoid `MplexStream.read()`, which blocking reads until EOF. +MAX_READ_LEN = 2 ** 32 - 1