call site 1 for test.collect.Function.__hash__
test/testing/test_collect.py - line 446
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
   def test_check_collect_hashes():
       tmp = py.test.ensuretemp("check_collect_hashes")
       tmp.ensure("test_one.py").write(py.code.Source("""
           def test_1():
               pass
           
           def test_2():
               pass
       """))
       tmp.ensure("test_two.py").write(py.code.Source("""
           def test_1():
               pass
           
           def test_2():
               pass
       """))
       tmp.ensure("__init__.py")
       col = py.test.collect.Directory(tmp)
       l = list(col._tryiter())
       assert len(l) == 4
       for numi, i in enumerate(l):
           for numj, j in enumerate(l):
               if numj != numi:
->                 assert hash(i) != hash(j)
                   assert i != j