call site 9 for test.collect.Class.teardown
test/testing/test_session.py - line 135
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
   def test_collectonly(self): 
       session = self.mainsession("--collectonly", 
->                                datadir / 'filetest.py')
       assert session.config.option.collectonly
       out = self.file.getvalue()
       #print out 
       l = session.getitemoutcomepairs(Failed)
       #if l: 
       #    x = l[0][1].excinfo
       #    print x.exconly() 
       #    print x.traceback
       assert len(l) == 0 
       for line in ('filetest.py', 'test_one', 
                    'TestClass', 'test_method_one'): 
           assert out.find(line) 
test/testing/test_session.py - line 106
101
102
103
104
105
106
107
   def mainsession(self, *args): 
       from py.__.test.terminal.terminal import TerminalSession
       self.file = py.std.StringIO.StringIO() 
       config = py.test.config._reparse(list(args))
       session = TerminalSession(config, file=self.file) 
->     session.main()
       return session
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 23
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)
test/item.py - line 16
13
14
15
16
   def teardown_all(self): 
       while self.stack: 
           col = self.stack.pop() 
->         col.teardown()