don't do coverage for stuff that shouldn't happen during testing

This commit is contained in:
sneakers-the-rat 2024-05-17 18:16:28 -07:00
parent fd252e3911
commit f44397502e
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -60,5 +60,5 @@ def update_ndarray_stub() -> None:
pyi_file = Path(ndarray.__file__).with_suffix(".pyi")
with open(pyi_file, "w") as pyi:
pyi.write(stub_string)
except Exception as e:
except Exception as e: # pragma: no cover
warn(f"ndarray.pyi stub file could not be generated: {e}", stacklevel=1)