#NEWLINE# def test_setUpModule_failing_no_teardown( testdir ) : #NEWLINE# #INDENT# testpath = testdir . makepyfile ( '\n        l = []\n\n        def setUpModule():\n            0/0\n\n        def tearDownModule():\n            l.append(1)\n\n        def test_hello():\n            pass\n    ' ) #NEWLINE# reprec = testdir . inline_run ( testpath ) #NEWLINE# reprec . assertoutcome ( passed = 0 , failed = 1 ) #NEWLINE# call = reprec . getcalls ( 'pytest_runtest_setup' ) [ 0 ] #NEWLINE# assert ( not call . item . module . l )