def test_load_bad_filename(self): u = as_unicode(r"a\x00b\x00c.png") self.assertRaises(pygame.error, imageext.load_extended, u)