<s> import json <EOL> import platform <EOL> import pytest <EOL> pytest_plugins = '<STR_LIT>' , <EOL> platform <EOL> def test_help ( testdir ) : <EOL> result = testdir . runpytest ( '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT:*>" , "<STR_LIT:*>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:*>" , <EOL> ] ) <EOL> def test_groups ( testdir ) : <EOL> test = testdir . makepyfile ( '''<STR_LIT>''' ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:*>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:*>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:*>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:*>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> SIMPLE_TEST = '''<STR_LIT>''' <EOL> GROUPING_TEST = '''<STR_LIT>''' <EOL> GROUPING_PARAMS_TEST = '''<STR_LIT>''' <EOL> def test_group_by_name ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_TEST ) <EOL> test_y = testdir . makepyfile ( test_y = GROUPING_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:name>' , test_x , test_y ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_group_by_func ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_TEST ) <EOL> test_y = testdir . makepyfile ( test_y = GROUPING_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test_x , test_y ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_group_by_fullfunc ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_TEST ) <EOL> test_y = testdir . makepyfile ( test_y = GROUPING_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test_x , test_y ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_group_by_param_all ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_TEST ) <EOL> test_y = testdir . makepyfile ( test_y = GROUPING_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test_x , test_y ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_group_by_param_select ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_PARAMS_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> test_x ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_group_by_param_select_multiple ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_PARAMS_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> test_x ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , '<STR_LIT:*>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_group_by_fullname ( testdir ) : <EOL> test_x = testdir . makepyfile ( test_x = GROUPING_TEST ) <EOL> test_y = testdir . makepyfile ( test_y = GROUPING_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test_x , test_y ) <EOL> result . stdout . fnmatch_lines_random ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_double_use ( testdir ) : <EOL> test = testdir . makepyfile ( '''<STR_LIT>''' ) <EOL> result = testdir . runpytest ( test , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] ) <EOL> def test_conflict_between_only_and_skip ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_conflict_between_only_and_disable ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_max_time_min_rounds ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_max_time ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bogus_max_time ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> @ pytest . mark . skipif ( "<STR_LIT>" ) <EOL> def test_pep418_timer ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bad_save ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bad_save_2 ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bad_compare_fail ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bad_rounds ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bad_rounds_2 ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_compare ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_compare_last ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_compare_non_existing ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_compare_non_existing_verbose ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> test , '<STR_LIT>' ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_compare_no_files ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> test , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_compare_no_files_verbose ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , <EOL> test , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_compare_no_files_match ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> test , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_compare_no_files_match_verbose ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , <EOL> test , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_verbose ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_save ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> json . loads ( testdir . tmpdir . join ( '<STR_LIT>' ) . listdir ( ) [ <NUM_LIT:0> ] . join ( '<STR_LIT>' ) . read ( ) ) <EOL> def test_histogram ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> assert [ f . basename for f in testdir . tmpdir . listdir ( "<STR_LIT>" , sort = True ) ] == [ <EOL> '<STR_LIT>' , <EOL> ] <EOL> def test_autosave ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> json . loads ( testdir . tmpdir . join ( '<STR_LIT>' ) . listdir ( ) [ <NUM_LIT:0> ] . listdir ( '<STR_LIT>' ) [ <NUM_LIT:0> ] . read ( ) ) <EOL> def test_bogus_min_time ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_disable_gc ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_custom_timer ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bogus_timer ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_sort_by_mean ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_bogus_sort ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_xdist ( testdir ) : <EOL> pytest . importorskip ( '<STR_LIT>' ) <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:1>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_xdist_verbose ( testdir ) : <EOL> pytest . importorskip ( '<STR_LIT>' ) <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:1>' , '<STR_LIT>' , test ) <EOL> result . stderr . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_abort_broken ( testdir ) : <EOL> """<STR_LIT>""" <EOL> test = testdir . makepyfile ( '''<STR_LIT>''' ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:*>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> BASIC_TEST = '''<STR_LIT>''' <EOL> def test_basic ( testdir ) : <EOL> test = testdir . makepyfile ( BASIC_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_skip ( testdir ) : <EOL> test = testdir . makepyfile ( BASIC_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_disable ( testdir ) : <EOL> test = testdir . makepyfile ( BASIC_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_mark_selection ( testdir ) : <EOL> test = testdir . makepyfile ( BASIC_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_only_benchmarks ( testdir ) : <EOL> test = testdir . makepyfile ( BASIC_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_columns ( testdir ) : <EOL> test = testdir . makepyfile ( SIMPLE_TEST ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , test ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] ) </s>
