Add a unit test for UnixUpgrade
Use a specific Exception specification

Using plain Exception or nothing means pytest and Mox don't pick up errors.
Add __init__.py to test directories
Looks like travis has a slightly different version of flake8 :-(