def close_spider(self, spider):
        if self.item_buffer:
            self.insert_item(self.item_buffer, spider)
Tests that pylearn2.utils.contains_inf correctly
dataset/ETHPy150Open sebdah/scrapy-mongodb/scrapy_mongodb.py/MongoDBPipeline.close_spider--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/tests/test_general.py/test_contains_inf