After checking to see if I had changed any files mentioned in the stack trace (nope), or parent classes of any classes mentioned (yes, two 'two spaces before inline comment'), I started looking for other options.
I know that git has the 'bisect' command to do a binary search on commits, but I committed all of the files at the same time, and I've never heard of a facility to do a binary search on changed files...really, changes like pep8, that are not supposed to affect functionality and are not inter-related, would be the only use of it.
So here's the process I'm following:
If the tests fail:
- un-commit the changes (git reset HEAD^)
- stage half of the changes and check them in
- stash the other half of the changes
- run the tests
If the tests pass,
- un-stash the stashed changes
- stage and commit half of them
- re-stash the other half
- run the tests
Repeat.
After two cycles of this, I did what I should have done in the first place - run test on master, at which point I discovered that the failing tests were an unintended consequence of some logging I had added to one of the project's dependencies. Not my most brilliant moment, but at least now I know what I will do if I run into a similar problem.