Skip to content

Commit d368576

Browse files
committed
update test
1 parent ae3f464 commit d368576

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/tests/copy_view/test_astype.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import numpy as np
44
import pytest
55

6-
from pandas.compat import HAS_PYARROW
7-
86
from pandas import (
97
DataFrame,
108
Series,
@@ -218,10 +216,7 @@ def test_convert_dtypes(using_infer_string):
218216
df_orig = df.copy()
219217
df2 = df.convert_dtypes()
220218

221-
if HAS_PYARROW:
222-
assert not tm.shares_memory(get_array(df2, "a"), get_array(df, "a"))
223-
else:
224-
assert tm.shares_memory(get_array(df2, "a"), get_array(df, "a"))
219+
assert tm.shares_memory(get_array(df2, "a"), get_array(df, "a"))
225220
assert tm.shares_memory(get_array(df2, "d"), get_array(df, "d"))
226221
assert tm.shares_memory(get_array(df2, "b"), get_array(df, "b"))
227222
assert tm.shares_memory(get_array(df2, "c"), get_array(df, "c"))

0 commit comments

Comments
 (0)