]> git.ipfire.org Git - thirdparty/tornado.git/commit
test: Count writes to stderr as failures
authorBen Darnell <ben@bendarnell.com>
Sun, 14 Jan 2018 20:20:51 +0000 (15:20 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 14 Jan 2018 22:12:51 +0000 (17:12 -0500)
commit374575517384829e9b1b015bb833c2346a91f479
tree303e7fc9eebe2d010292430bcdf114ba7802bf15
parent81dd461da39e7dd9dcd060a958437795bafeb533
test: Count writes to stderr as failures

Python 3 logs warnings in destructors if objects responsible for file
descriptors are not explicitly closed. These warnings were previously
being ignored by our test suite unless a human was looking at the log
output, but several recent PRs have introduced these issues. This
change ensures we catch them (and fixes the most recent one in
process_test. The leak has always been there, but the previous commit
caused it to be logged).
tornado/process.py
tornado/test/process_test.py
tornado/test/runtests.py
tornado/test/testing_test.py
tornado/testing.py