<s> import pytest <EOL> def setup_module ( mod ) : <EOL> mod . nose = pytest . importorskip ( "<STR_LIT>" ) <EOL> def test_nose_setup ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . assert_outcomes ( passed = <NUM_LIT:2> ) <EOL> def test_setup_func_with_setup_decorator ( ) : <EOL> from _pytest . nose import call_optional <EOL> l = [ ] <EOL> class A : <EOL> @ pytest . fixture ( autouse = True ) <EOL> def f ( self ) : <EOL> l . append ( <NUM_LIT:1> ) <EOL> call_optional ( A ( ) , "<STR_LIT:f>" ) <EOL> assert not l <EOL> def test_setup_func_not_callable ( ) : <EOL> from _pytest . nose import call_optional <EOL> class A : <EOL> f = <NUM_LIT:1> <EOL> call_optional ( A ( ) , "<STR_LIT:f>" ) <EOL> def test_nose_setup_func ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . assert_outcomes ( passed = <NUM_LIT:2> ) <EOL> def test_nose_setup_func_failure ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_nose_setup_func_failure_2 ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> reprec = testdir . inline_run ( ) <EOL> reprec . assertoutcome ( passed = <NUM_LIT:1> ) <EOL> def test_nose_setup_partial ( testdir ) : <EOL> pytest . importorskip ( "<STR_LIT>" ) <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_nose_test_generator_fixtures ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p , '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_module_level_setup ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_nose_style_setup_teardown ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_nose_setup_ordering ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( ) <EOL> result . stdout . fnmatch_lines ( [ <EOL> "<STR_LIT>" , <EOL> ] ) <EOL> def test_apiwrapper_problem_issue260 ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( ) <EOL> result . assert_outcomes ( passed = <NUM_LIT:1> ) <EOL> def test_setup_teardown_linking_issue265 ( testdir ) : <EOL> testdir . makepyfile ( '''<STR_LIT>''' ) <EOL> reprec = testdir . runpytest ( ) <EOL> reprec . assert_outcomes ( passed = <NUM_LIT:1> , skipped = <NUM_LIT:1> ) <EOL> def test_SkipTest_during_collection ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p ) <EOL> result . assert_outcomes ( skipped = <NUM_LIT:1> ) <EOL> def test_SkipTest_in_test ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> reprec = testdir . inline_run ( ) <EOL> reprec . assertoutcome ( skipped = <NUM_LIT:1> ) <EOL> def test_istest_function_decorator ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p ) <EOL> result . assert_outcomes ( passed = <NUM_LIT:1> ) <EOL> def test_nottest_function_decorator ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> reprec = testdir . inline_run ( ) <EOL> assert not reprec . getfailedcollections ( ) <EOL> calls = reprec . getreports ( "<STR_LIT>" ) <EOL> assert not calls <EOL> def test_istest_class_decorator ( testdir ) : <EOL> p = testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( p ) <EOL> result . assert_outcomes ( passed = <NUM_LIT:1> ) <EOL> def test_nottest_class_decorator ( testdir ) : <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> reprec = testdir . inline_run ( ) <EOL> assert not reprec . getfailedcollections ( ) <EOL> calls = reprec . getreports ( "<STR_LIT>" ) <EOL> assert not calls </s>
