Rather than this check, use `testtools.compat._isbytes`, which already implements this.

It would be more robust if you could check for 'is not unicode' rather than 'is bytes'. Alas, Python 3 makes this tricky.