Does unittest cause an exception when the second argument isn't a string? That would catch some of these I'd imagine.
Searching for announced breaking changes about arguments to Python included functions...
https://bugs.python.org/issue25628
https://bugs.python.org/issue29193