call site 1 for path.local.open
apigen/rest/testing/test_rest.py - line 100
93
94
95
96
97
98
99
100
   def test_write_section(self):
       tempdir = temppath.ensure('dirwriter', dir=True)
       dw = self.get_filled_writer(DirWriter, tempdir)
       fpaths = tempdir.listdir('*.txt')
       assert len(fpaths) == 2
       assert sorted([f.basename for f in fpaths]) == ['bar.txt', 'foo.txt']
       assert _nl(tempdir.join('foo.txt').read()) == 'foo data\n'
->     assert _nl(tempdir.join('bar.txt').read()) == 'bar data\n'
path/common.py - line 335
329
330
331
332
333
334
335
336
337
338
339
   def read(self, mode='rb'):
       """ read and return a bytestring from reading the path. """
       if py.std.sys.version_info < (2,3):
           for x in 'u', 'U':
               if x in mode:
                   mode = mode.replace(x, '')
->     f = self.open(mode)
       try:
           return f.read()
       finally:
           f.close()