def setUp(self): # Needed for 8 bits-per-pixel color palette surface tests. pygame.init() # Makes sure the same array package is used each time. if arraytype: pygame.surfarray.use_arraytype(arraytype)