Skip to content

Commit 89f8a66

Browse files
update more tests
1 parent 123c777 commit 89f8a66

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pandas/tests/copy_view/test_astype.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ def test_convert_dtypes(using_infer_string):
224224
df_orig = df.copy()
225225
df2 = df.convert_dtypes()
226226

227-
if using_infer_string and HAS_PYARROW:
228-
# TODO the default nullable string dtype still uses python storage
229-
# this should be changed to pyarrow if installed
227+
if HAS_PYARROW:
230228
assert not tm.shares_memory(get_array(df2, "a"), get_array(df, "a"))
231229
else:
232230
assert tm.shares_memory(get_array(df2, "a"), get_array(df, "a"))

pandas/tests/io/test_clipboard.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,7 @@ def test_read_clipboard_dtype_backend(
350350
# GH#50502
351351
if dtype_backend == "pyarrow":
352352
pa = pytest.importorskip("pyarrow")
353-
if engine == "c" and string_storage == "pyarrow":
354-
# TODO avoid this exception?
355-
string_dtype = pd.ArrowDtype(pa.large_string())
356-
else:
357-
string_dtype = pd.ArrowDtype(pa.string())
353+
string_dtype = pd.ArrowDtype(pa.string())
358354
else:
359355
string_dtype = pd.StringDtype(string_storage)
360356

0 commit comments

Comments
 (0)