diff -r e38156312410 -r 01ee3e155726 tests/test-check-pyflakes.t --- a/tests/test-check-pyflakes.t Thu Mar 16 23:17:07 2017 -0400 +++ b/tests/test-check-pyflakes.t Thu Mar 16 21:16:57 2017 -0400 @@ -7,5 +7,5 @@ run pyflakes on all tracked files ending in .py or without a file ending (skipping binary file random-seed) - $ hg locate 'set:(**.py or grep("^!#.*python")) - removed()' 2>/dev/null \ + $ hg locate 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \ > | xargs pyflakes 2>/dev/null