def setup_method(self, meth): BaseDirectGCTest.setup_method(self, meth) max = getattr(meth, 'max_number_of_pinned_objects', 20) self.gc.max_number_of_pinned_objects = max
def setup_method(self, meth): BaseDirectGCTest.setup_method(self, meth) max = getattr(meth, 'max_number_of_pinned_objects', 20) self.gc.max_number_of_pinned_objects = max if not hasattr(self.gc, 'minor_collection'): self.gc.minor_collection = self.gc._minor_collection
def setup_method(self, meth): BaseDirectGCTest.setup_method(self, meth) max = getattr(meth, "max_number_of_pinned_objects", 20) self.gc.max_number_of_pinned_objects = max