Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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