Ignore depredcated warns(None) overload errors from mypy

This commit is contained in:
Olga Matoula
2021-05-17 09:50:59 +01:00
parent dd8ad3fa9c
commit 3f414d7bbe
4 changed files with 4 additions and 4 deletions

View File

@@ -403,7 +403,7 @@ class TestRmRf:
# ignored function
with warnings.catch_warnings():
warnings.simplefilter("ignore")
with pytest.warns(None) as warninfo:
with pytest.warns(None) as warninfo: # type: ignore[call-overload]
exc_info4 = (None, PermissionError(), None)
on_rm_rf_error(os.open, str(fn), exc_info4, start_path=tmp_path)
assert fn.is_file()