pytester: some type annotations

This commit is contained in:
Ran Benita
2020-07-09 23:50:15 +03:00
parent c7a1db5d01
commit bcff02c4c6
3 changed files with 36 additions and 29 deletions

View File

@@ -38,7 +38,7 @@ def test_std_warn_not_pytestwarning(testdir: Testdir) -> None:
"""
)
with pytest.raises(ValueError, match=".*instance of PytestWarning.*"):
items[0].warn(UserWarning("some warning"))
items[0].warn(UserWarning("some warning")) # type: ignore[arg-type]
def test__check_initialpaths_for_relpath() -> None: