We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb4dd3 commit bc0a0e5Copy full SHA for bc0a0e5
testing/code/test_source.py
@@ -479,7 +479,7 @@ def deco_fixture():
479
assert False
480
481
# Since deco_fixture is now an instance of FixtureFunctionDef the getsource function will not work on it.
482
- with pytest.raises(Exception):
+ with pytest.raises(TypeError, match=r"FixtureFunctionDefinition"):
483
inspect.getsource(deco_fixture)
484
src = inspect.getsource(deco_fixture._get_wrapped_function())
485
assert src == " @pytest.fixture\n def deco_fixture():\n assert False\n"
0 commit comments