def testPickle(self):
    for proto in range((pickle.HIGHEST_PROTOCOL + 1)):
        with self.assertRaises(TypeError):
            pickle.dumps(BZ2Compressor(), proto)
def testPickle(self):
    for proto in range((pickle.HIGHEST_PROTOCOL + 1)):
        with self.assertRaises(TypeError):
            pickle.dumps(BZ2Compressor(), proto)