From 25d97afa6021d898554b4cba3da7aa7fb6896dd3 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 22 Nov 2019 11:55:04 -0500 Subject: [PATCH] dont show loop blocking warnings when running tests in CI --- torba/torba/testcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/torba/torba/testcase.py b/torba/torba/testcase.py index 3e5ee15c2..5042564b4 100644 --- a/torba/torba/testcase.py +++ b/torba/torba/testcase.py @@ -1,3 +1,4 @@ +import os import sys import logging import functools @@ -61,7 +62,7 @@ class AsyncioTestCase(unittest.TestCase): # Implementation inspired by discussion: # https://bugs.python.org/issue32972 - LOOP_SLOW_CALLBACK_DURATION = 0.2 + LOOP_SLOW_CALLBACK_DURATION = 10 if os.environ.get('CI', False) else 0.2 # dont show warning when CI runs tests maxDiff = None