Closed
Description
Originally reported by: BitBucket: caryoscelus, GitHub: caryoscelus
Test case:
#!python
#module.py
def fail():
raise Exception('fail')
#!python
#test_a.py
import module
def do_nothing():
pass
module.fail = do_nothing
def test_nofail():
module.fail()
#!python
#test_b.py
import module
import pytest
def test_fail():
with pytest.raises(Exception):
module.fail()
pytest test_b.py
runs fine, but just pytest
fails