Fix incompatibility with python2.6, where unittest doesn't provide skipIf.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>