call site 1 for test.collect.Directory.teardown
doc/test_conftest.py - line 19
8
9
10
11
12
13
14
15
16
17
18
19
20
21
   def test_doctest_extra_exec(): 
       # XXX get rid of the next line: 
       py.magic.autopath().dirpath('conftest.py').copy(tmpdir.join('conftest.py'))
       xtxt = tmpdir.join('y.txt')
       xtxt.write(py.code.Source("""
           hello::
               .. >>> raise ValueError 
                  >>> None
       """))
       config = py.test.config._reparse([xtxt]) 
       session = config.initsession()
->     session.main()
       l = session.getitemoutcomepairs(Failed) 
       assert len(l) == 1
test/session.py - line 67
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
   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
       return self.getitemoutcomepairs(Failed)
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 17
14
15
16
17
   def teardown_all(self): 
       while self.stack: 
           col = self.stack.pop() 
->         col.teardown()