Fix compatibility with just-released unittest2 0.6.

This release added some PendingDeprecationWarnings that were
not there previously (and were DeprecationWarnings instead
in newer pythons)