-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed
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
Metadata
Metadata
Assignees
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed