dont show loop blocking warnings when running tests in CI

This commit is contained in:
Alex Grintsvayg 2019-11-22 11:55:04 -05:00
parent df635b963c
commit 25d97afa60
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -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