Don't use pyflakes as part of tests

The _compat code cannot be sanely made to pass pyflakes and pyflakes
warnings cannot be silenced, so it cannot be used for tests anymore or
during CI.