call site 9 for path.local.write
doc/test_conftest.py - line 96
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
   def test_js_ignore():
       py.magic.autopath().dirpath('conftest.py').copy(tmpdir.join('conftest.py'))
->     tmpdir.ensure('__init__.py')
       xtxt = tmpdir.join('x.txt')
       xtxt.write(py.code.Source("""
       `blah`_
   
       .. _`blah`: javascript:some_function()
       """))
       config = py.test.config._reparse([xtxt]) 
       session = config.initsession()
       session.main()
       l = session.getitemoutcomepairs(Failed)
       assert len(l) == 0 
       l = session.getitemoutcomepairs(Passed)
       l2 = session.getitemoutcomepairs(Skipped)
       assert len(l+l2) == 3
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