You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit filters the following warning:
> UserWarning: Signature b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\x00\x00\x00\x00\x00\x00' for
> <class 'numpy.longdouble'> does not match any known type: falling back to type probe function.
> This warnings [sic] indicates broken support for the dtype!
> machar = _get_machar(dtype)
To ensure that this warning is only filtered on WSL1, we try to detect WSL
by checking for a WSL-specific string from the uname, which appears to be
endorsed by WSL devs.
(microsoft/WSL#4555 (comment))
I also tried checking the `WSL_INTEROP` and `WSL_DISTRO_NAME` environment
variables as suggested in the above linked issues, but I preferred reusing
the `platform` module that was already imported inside `casting.py`.
There is perhaps a more thorough approach where we collect all raised warnings,
test the collected warnings, etc. but I didn't want to overcomplicate things.
0 commit comments