call site 3 for path.local.__cmp__
doc/test_conftest.py - line 66
64
65
66
67
68
69
70
71
72
73
74
75
76
77
   def test_doctest_eol(): 
       # XXX get rid of the next line: 
->     py.magic.autopath().dirpath('conftest.py').copy(tmpdir.join('conftest.py'))
   
       ytxt = tmpdir.join('y.txt')
       ytxt.write(py.code.Source(".. >>> 1 + 1\r\n   2\r\n\r\n"))
       config = py.test.config._reparse([ytxt]) 
       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) == 2
path/local/local.py - line 239
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
   def copy(self, target, archive=False):
       """ copy path to target."""
       assert not archive, "XXX archive-mode not supported"
       if self.check(file=1):
           if target.check(dir=1):
               target = target.join(self.basename)
->         assert self!=target
           copychunked(self, target)
       else:
           target.ensure(dir=1)
           def rec(p):
               return p.check(link=0)
           for x in self.visit(rec=rec):
               relpath = x.relto(self)
               newx = target.join(relpath)
               if x.check(link=1):
                   newx.mksymlinkto(x.readlink())
               elif x.check(file=1):
                   copychunked(x, newx)
               elif x.check(dir=1):
                   newx.ensure(dir=1)