Skip to content

Commit d4c83e8

Browse files
committed
test
1 parent 2f992fd commit d4c83e8

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

pandas/core/construction.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ def array(
370370

371371
elif data.dtype.kind == "b":
372372
return BooleanArray._from_sequence(data, dtype="boolean", copy=copy)
373-
# elif inferred_dtype != "mixed":
374-
# dtype = pandas_dtype(inferred_dtype)
375-
# cls = dtype.construct_array_type()
376-
# return cls._from_sequence(data, dtype=dtype, copy=copy)
377373
else:
378374
# e.g. complex
379375
return NumpyExtensionArray._from_sequence(data, dtype=data.dtype, copy=copy)

pandas/tests/series/test_constructors.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -205,25 +205,11 @@ def test_scalar_extension_dtype(self, ea_scalar_and_dtype):
205205
tm.assert_series_equal(ser, expected)
206206

207207

208-
def test_scalar_extension_dtype2(self):
209-
# GH 28401
210-
from pandas.core.dtypes.cast import (
211-
LossySetitemError,
212-
construct_1d_arraylike_from_scalar,
213-
find_common_type,
214-
infer_dtype_from,
215-
maybe_box_native,
216-
maybe_cast_pointwise_result,
217-
)
208+
def test_unambiguous_scalar(self):
218209
ea_scalar, ea_dtype = MockScalar(), MockDtype()
219210

220-
# import pdb; pdb.set_trace()
221-
infer_dtype_from(MockScalar())
222211
ser = Series(ea_scalar, index=range(3))
223-
expected = Series([ea_scalar] * 3, dtype=ea_dtype)
224-
225212
assert ser.dtype == ea_dtype
226-
# tm.assert_series_equal(ser, expected)
227213

228214
def test_constructor(self, datetime_series, using_infer_string):
229215
empty_series = Series()

0 commit comments

Comments
 (0)