call site 0 for path.local.write
apigen/source/testing/test_browser.py - line 69
67
68
69
70
71
72
73
74
75
76
77
   def test_importing_goes_wrong():
       tmp = py.test.ensuretemp("sourcebrowserimport")
->     tmp.ensure("x.py").write(py.code.Source("""
           import aslkdjaslkdjasdl
       """))
       mod = parse_path(tmp.join("x.py"))
   
       tmp.ensure("y.py").write(py.code.Source("""
           raise KeyboardInterrupt 
       """))
       py.test.raises(KeyboardInterrupt, 'parse_path(tmp.join("y.py"))')
path/local/local.py - line 309
298
299
300
301
302
303
304
305
306
307
308
309
310
   def ensure(self, *args, **kwargs):
       """ ensure that an args-joined path exists (by default as
               a file). if you specify a keyword argument 'dir=True'
               then the path is forced to be a directory path.
           """
       p = self.join(*args)
       if kwargs.get('dir', 0):
           return p._ensuredirs()
       else:
           p.dirpath()._ensuredirs()
           if not p.check(file=1):
->             p.write("")
           return p