parent
							
								
									0de4a13623
								
							
						
					
					
						commit
						86030ee645
					
				| 
						 | 
					@ -279,9 +279,9 @@ class FunctionMixin(PyobjMixin):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Generator(FunctionMixin, PyCollectorMixin, py.test.collect.Collector): 
 | 
					class Generator(FunctionMixin, PyCollectorMixin, py.test.collect.Collector): 
 | 
				
			||||||
    def collect(self):
 | 
					    def collect(self):
 | 
				
			||||||
        # test generators are collectors yet participate in 
 | 
					        # test generators are seen as collectors but they also 
 | 
				
			||||||
        # the test-item setup and teardown protocol. 
 | 
					        # invoke setup/teardown on popular request 
 | 
				
			||||||
        # otherwise we could avoid global setupstate
 | 
					        # (induced by the common "test_*" naming shared with normal tests)
 | 
				
			||||||
        self.config._setupstate.prepare(self) 
 | 
					        self.config._setupstate.prepare(self) 
 | 
				
			||||||
        l = []
 | 
					        l = []
 | 
				
			||||||
        seen = {}
 | 
					        seen = {}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue