Workaround for bug in mock on Travis