call site 10 for test.config.initsession
test/testing/test_collect.py - line 325
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
   def test_order_of_execution_generator_different_codeline():
       o = tmpdir.ensure('genorder2', dir=2)
       o.join("test_genorder2.py").write(py.code.Source("""
       def test_generative_tests_different_codeline():
           test_list = []
           expected_list = range(3)
   
           def list_append_2():
               test_list.append(2)
   
           def list_append_1():
               test_list.append(1)
   
           def list_append_0():
               test_list.append(0)
   
           def assert_order_of_execution():
               print 'expected order', expected_list
               print 'but got       ', test_list
               assert test_list == expected_list
               
           yield list_append_0
           yield list_append_1
           yield list_append_2
           yield assert_order_of_execution   
       """))
       config = py.test.config._reparse([o])
->     session = config.initsession()
       session.main()
       l = session.getitemoutcomepairs(Passed) 
       assert len(l) == 4