Skip to content
Prev Previous commit
Next Next commit
removed aliasing and skip_if_no_arrow decorator
  • Loading branch information
SanjithChockan committed Jul 13, 2023
commit 5423fc47478bf66a00297d3ba8592bd212ff8d97
7 changes: 2 additions & 5 deletions pandas/tests/arrays/string_/test_string_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,11 @@ def test_constructor_not_string_type_raises(array, chunked):
ArrowStringArray(arr)


@skip_if_no_pyarrow
@pytest.mark.parametrize("chunked", [True, False])
def test_constructor_not_string_type_value_dictionary_raises(chunked):
import pyarrow as pa

array = pa
pa = pytest.importorskip("pyarrow")

arr = array.array([1, 2, 3], array.dictionary(array.int32(), array.int32()))
arr = pa.array([1, 2, 3], pa.dictionary(pa.int32(), pa.int32()))
if chunked:
arr = pa.chunked_array(arr)

Expand Down