call site 19 for test.ensuretemp
misc/testing/test_initpkg.py - line 83
81
82
83
   def check_import(modpath): 
       print "checking import", modpath
->     assert __import__(modpath) 
rest/testing/test_rst.py - line 9
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
   
   """ rst generation tests
   """
   
   from py.__.rest.rst import *
   from py.__.doc.conftest import restcheck
-> import traceback
   
   tempdir = py.test.ensuretemp('rest')
   def checkrest(rest):
       fname = traceback.extract_stack()[-2][2]
       i = 0
       while True:
           if i == 0:
               filename = '%s.txt' % (fname,)
           else:
               filename = '%s_%s.txt' % (fname, i)
           tempfile = tempdir.join(filename)
           if not tempfile.check():
               break
           i += 1
       tempfile.write(rest)
       restcheck(tempfile)
       return tempfile.new(ext='.html').read()