Skip to content

Commit cf98c5b

Browse files
committed
Passing now?
1 parent 6783f67 commit cf98c5b

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

pandas/tests/arrays/floating/test_construction.py

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import locale
2-
31
import numpy as np
42
import pytest
53

6-
from pandas.compat import (
7-
is_platform_windows,
8-
np_version_under1p20,
9-
)
10-
114
import pandas as pd
125
import pandas._testing as tm
136
from pandas.core.arrays import FloatingArray
@@ -47,7 +40,7 @@ def test_floating_array_constructor():
4740
FloatingArray(values)
4841

4942

50-
def test_floating_array_disallows_float16(request):
43+
def test_floating_array_disallows_float16():
5144
# GH#44715
5245
arr = np.array([1, 2], dtype=np.float16)
5346
mask = np.array([False, False])
@@ -56,15 +49,6 @@ def test_floating_array_disallows_float16(request):
5649
with pytest.raises(TypeError, match=msg):
5750
FloatingArray(arr, mask)
5851

59-
if np_version_under1p20 or (
60-
locale.getlocale()[0] != "en_US" and not is_platform_windows()
61-
):
62-
# the locale condition may need to be refined; this fails on
63-
# the CI in the ZH_CN build
64-
# https://github.com/numpy/numpy/issues/20512
65-
mark = pytest.mark.xfail(reason="numpy does not raise on np.dtype('Float16')")
66-
request.node.add_marker(mark)
67-
6852
with pytest.raises(TypeError, match="data type 'Float16' not understood"):
6953
pd.array([1.0, 2.0], dtype="Float16")
7054

0 commit comments

Comments
 (0)