]> git.ipfire.org Git - thirdparty/tornado.git/commit
testing: Deprecate environment-dependent behavior in ExpectLog
authorBen Darnell <ben@bendarnell.com>
Sun, 27 Nov 2022 02:50:04 +0000 (21:50 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 27 Nov 2022 03:43:56 +0000 (22:43 -0500)
commitfb22de0d3eae58cd8ff2b439299440445b1d6e9b
treea3e1bbafcf3ca0d1003ec10312324dca115fc2bf
parent341e8900524846a2c5e7a9ce5be4448e13d2d3d7
testing: Deprecate environment-dependent behavior in ExpectLog

ExpectLog is sensitive to the difference between tornado.testing.main
(which sets the logging level to info) and most other test runners,
which do not. In the future ExpectLog will match WARNING and above
by default; matching lower levels without using the ``level`` argument
is deprecated.

Fix one test in httpserver_test.py that is affected by this.
tornado/test/httpserver_test.py
tornado/test/websocket_test.py
tornado/testing.py