File tree 1 file changed +1
-17
lines changed
pandas/tests/arrays/floating
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 1
- import locale
2
-
3
1
import numpy as np
4
2
import pytest
5
3
6
- from pandas .compat import (
7
- is_platform_windows ,
8
- np_version_under1p20 ,
9
- )
10
-
11
4
import pandas as pd
12
5
import pandas ._testing as tm
13
6
from pandas .core .arrays import FloatingArray
@@ -47,7 +40,7 @@ def test_floating_array_constructor():
47
40
FloatingArray (values )
48
41
49
42
50
- def test_floating_array_disallows_float16 (request ):
43
+ def test_floating_array_disallows_float16 ():
51
44
# GH#44715
52
45
arr = np .array ([1 , 2 ], dtype = np .float16 )
53
46
mask = np .array ([False , False ])
@@ -56,15 +49,6 @@ def test_floating_array_disallows_float16(request):
56
49
with pytest .raises (TypeError , match = msg ):
57
50
FloatingArray (arr , mask )
58
51
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
-
68
52
with pytest .raises (TypeError , match = "data type 'Float16' not understood" ):
69
53
pd .array ([1.0 , 2.0 ], dtype = "Float16" )
70
54
You can’t perform that action at this time.
0 commit comments