call site 6 for code.Source.__str__
doc/test_conftest.py - line 16
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
path/local/local.py - line 275
273
274
275
276
277
278
279
280
   def write(self, content, mode='wb'):
       """ write string content into path. """
->     s = str(content)
       f = self.open(mode)
       try:
           f.write(s)
       finally:
           f.close()