This commit is contained in:
Kian Meng, Ang
2021-12-27 20:23:15 +08:00
committed by GitHub
parent 7a42db2bf0
commit 55debfad1f
24 changed files with 35 additions and 34 deletions

View File

@@ -483,7 +483,7 @@ def test_source_with_decorator() -> None:
src = inspect.getsource(deco_fixture)
assert src == " @pytest.fixture\n def deco_fixture():\n assert False\n"
# currenly Source does not unwrap decorators, testing the
# currently Source does not unwrap decorators, testing the
# existing behavior here for explicitness, but perhaps we should revisit/change this
# in the future
assert str(Source(deco_fixture)).startswith("@functools.wraps(function)")