evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / numpy / disable-failing-long-double-test-Rosetta-2.patch
blob3e446745f58cf8ffe8c76610d10b2936fc1561d5
1 diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py
2 index 6951d41e4..eefe86ad4 100644
3 --- a/numpy/core/tests/test_umath.py
4 +++ b/numpy/core/tests/test_umath.py
5 @@ -4180,7 +4180,17 @@ def test_against_cmath(self):
7 @pytest.mark.xfail(IS_MUSL, reason="gh23049")
8 @pytest.mark.xfail(IS_WASM, reason="doesn't work")
9 - @pytest.mark.parametrize('dtype', [np.complex64, np.complex_, np.longcomplex])
10 + @pytest.mark.parametrize('dtype', [
11 + np.complex64,
12 + np.complex_,
13 + pytest.param(
14 + np.longcomplex,
15 + marks=pytest.mark.skipif(
16 + sys.platform == "darwin" and platform.machine() == "x86_64",
17 + reason="doesn’t work under Rosetta 2",
18 + ),
19 + ),
20 + ])
21 def test_loss_of_precision(self, dtype):
22 """Check loss of precision in complex arc* functions"""