call site 0 for magic.revoke
test/testing/test_collect.py - line 326
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
   def test_order_of_execution_generator_different_codeline():
       o = tmpdir.ensure('genorder2', dir=2)
       o.join("test_genorder2.py").write(py.code.Source("""
       def test_generative_tests_different_codeline():
           test_list = []
           expected_list = range(3)
   
           def list_append_2():
               test_list.append(2)
   
           def list_append_1():
               test_list.append(1)
   
           def list_append_0():
               test_list.append(0)
   
           def assert_order_of_execution():
               print 'expected order', expected_list
               print 'but got       ', test_list
               assert test_list == expected_list
               
           yield list_append_0
           yield list_append_1
           yield list_append_2
           yield assert_order_of_execution   
       """))
       config = py.test.config._reparse([o])
       session = config.initsession()
->     session.main()
       l = session.getitemoutcomepairs(Passed) 
       assert len(l) == 4
test/session.py - line 67
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
   def main(self): 
       """ main loop for running tests. """
       colitems = self.config.getcolitems()
       try:
           self.header(colitems) 
           try:
               try:
                   for colitem in colitems: 
                       self.runtraced(colitem)
               except KeyboardInterrupt: 
                   raise 
           finally: 
->             self.footer(colitems) 
       except Exit, ex:
           pass
test/terminal/terminal.py - line 159
158
159
160
161
162
163
164
   def footer(self, colitems):
->     super(TerminalSession, self).footer(colitems) 
       self.endtime = now()
       self.out.line() 
       self.skippedreasons()
       self.failures()
       self.summaryline()
test/session.py - line 25
21
22
23
24
25
   def footer(self, colitems):
       """ teardown any resources after a test run. """ 
       py.test.collect.Function._state.teardown_all()
       if not self.config.option.nomagic:
->         py.magic.revoke(assertion=1)