This commit is contained in:
Kian Meng, Ang
2021-12-27 20:23:15 +08:00
committed by Bruno Oliveira
parent 764f90351a
commit e62daed8c4
23 changed files with 34 additions and 33 deletions

View File

@@ -484,7 +484,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)")