8000 Merge pull request #26619 from JuliaPoo/cont-26602-bit-shifting-clang-cl · numpy/numpy@c41621b · GitHub
[go: up one dir, main page]

Skip to content

Commit c41621b

Browse files
authored
Merge pull request #26619 from JuliaPoo/cont-26602-bit-shifting-clang-cl
TST: Re-enable `test_shift_all_bits` on clang-cl
2 parents f14b121 + 224cb40 commit c41621b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

numpy/_core/tests/test_scalarmath.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
assert_warns, _SUPPORTS_SVE,
1919
)
2020

21-
try:
22-
COMPILERS = np.show_config(mode="dicts")["Compilers"]
23-
USING_CLANG_CL = COMPILERS["c"]["name"] == "clang-cl"
24-
except TypeError:
25-
USING_CLANG_CL = False
26-
2721
types = [np.bool, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc,
2822
np.int_, np.uint, np.longlong, np.ulonglong,
2923
np.single, np.double, np.longdouble, np.csingle,
@@ -805,12 +799,6 @@ class TestBitShifts:
805799
[operator.rshift, operator.lshift], ids=['>>', '<<'])
806800
def test_shift_all_bits(self, type_code, op):
807801
"""Shifts where the shift amount is the width of the type or wider """
808-
if (
809-
USING_CLANG_CL and
810-
type_code in ("l", "L") and
811-
op is operator.lshift
812-
):
813-
pytest.xfail("Failing on clang-cl builds")
814802
# gh-2449
815803
dt = np.dtype(type_code)
816804
nbits = dt.itemsize * 8

0 commit comments

Comments
 (0)
0