Remove failing Pyflakes test case

A recent Pyflakes release removed the specific warning used by this
test.  Since the test didn't add any specific value anyway, we can
safely remove it.  Also remove the same test from the flake8 checker to
be future-proof.