update test dependencies
remove unused variable detected by pyflakes
actually, remove the entire function, we don't use it anymore
Merge pull request #3017 from gratipay/update-test-deps

Update test dependencies