]> git.ipfire.org Git - thirdparty/tornado.git/commit
testing: Add level argument to ExpectLog
authorBen Darnell <ben@bendarnell.com>
Sun, 19 Jan 2020 20:11:54 +0000 (15:11 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 19 Jan 2020 22:07:16 +0000 (17:07 -0500)
commit85192e11560a5fae87b4e7ed6804828ab3826d50
tree2ef5c202f5c6292d7fcb404a3d7f7c4775ca45f7
parente7330e65a92b60dd405eb36e1f424e0553a1ae87
testing: Add level argument to ExpectLog

This makes it possible for tests to be a little more precise, and also
makes them less dependent on exactly how the test is run (runtests.py
sets the logging level to info, but when running tests directly from
an editor it may use the default of warnings-only).

CI only runs the tests with runtests.py, so this might regress, but I'm
not building anything to prevent that yet (options include running the
tests differently in CI or making ExpectLog always use a fixed log
configuration instead of picking up the current one)
tornado/test/httpserver_test.py
tornado/test/iostream_test.py
tornado/test/simple_httpclient_test.py
tornado/testing.py