PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "64"
TOX_ENV: "py38"
- TOX_ARGS: ""
+ # Suppress the log-cleanliness assertions because of https://bugs.python.org/issue39010
+ TOX_ARGS: "--fail-if-logs=false"
install:
# Make sure the right python version is first on the PATH.
from tornado.httpclient import AsyncHTTPClient
from tornado.httpserver import HTTPServer
from tornado.netutil import Resolver
-from tornado.options import define, add_parse_callback
+from tornado.options import define, add_parse_callback, options
TEST_MODULES = [
reduce(operator.or_, (getattr(gc, v) for v in values))
),
)
+ define(
+ "fail-if-logs",
+ default=True,
+ help="If true, fail the tests if any log output is produced (unless captured by ExpectLog)",
+ )
def set_locale(x):
locale.setlocale(locale.LC_ALL, x)
log_counter.error_count,
counting_stderr.byte_count,
)
- sys.exit(1)
+ if options.fail_if_logs:
+ sys.exit(1)
if __name__ == "__main__":