We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d398884 commit bc9412cCopy full SHA for bc9412c
quaddtype/tests/test_quaddtype.py
@@ -70,7 +70,10 @@ def test_unsupported_astype(dtype):
70
with pytest.raises(TypeError if dtype != "V10" else ValueError, match="cast"):
71
np.array(val, dtype=dtype).astype(QuadPrecDType, casting="unsafe")
72
73
- with pytest.raises(TypeError if dtype != "V10" else ValueError, match="cast"):
+ if dtype == "V10":
74
+ pytest.xfail("cast from QuadPrecision to V10 segfaults")
75
+
76
+ with pytest.raises(TypeError, match="cast"):
77
np.array(QuadPrecision(1)).astype(dtype, casting="unsafe")
78
79
0 commit comments