dont show loop blocking warnings when running tests in CI
This commit is contained in:
parent
df635b963c
commit
25d97afa60
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue