While pycodestyle and pyflakes wrongly write error messages to stdout, the unittest module has the opposite bug: it writes successful status messages to stderr.
This also should have been included in commit 91fad79906 "Add Python static checks and unit tests to autopkgtest tests".
91fad79906