MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_mark_on_pseudo_function

Function test_mark_on_pseudo_function

testing/test_mark.py:171–182  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

169
170
171def test_mark_on_pseudo_function(pytester: Pytester) -> None:
172 pytester.makepyfile(
173 """
174 import pytest
175
176 @pytest.mark.r(lambda x: 0/0)
177 def test_hello():
178 pass
179 """
180 )
181 reprec = pytester.inline_run()
182 reprec.assertoutcome(passed=1)
183
184
185@pytest.mark.parametrize("option_name", ["--strict-markers", "--strict"])

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected