Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Oct 15, 2023
1 parent 224b7f6 commit 8cf3af5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/tests/series/methods/test_convert_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def test_convert_dtypes(
self,
test_cases,
params,
using_infer_string,
):
data, maindtype, expected_default, expected_other = test_cases
if (
Expand Down Expand Up @@ -200,7 +201,8 @@ def test_convert_dtypes(
if all(params_dict[key] is val for key, val in zip(spec[::2], spec[1::2])):
expected_dtype = dtype
if (
expected_default == "string"
using_infer_string
and expected_default == "string"
and expected_dtype == object
and params[0]
and not params[1]
Expand Down

0 comments on commit 8cf3af5

Please sign in to comment.