Skip to content

Commit 2622fbc

Browse files
committed
remove deprecated
1 parent 0fc2485 commit 2622fbc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/expr_and_series/lit_test.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ def test_date_lit(constructor: Constructor, request: pytest.FixtureRequest) -> N
134134

135135
def test_pyarrow_lit_string() -> None:
136136
df = nw.from_native(pa.table({"a": [1, 2, 3]}))
137-
result = df.select(nw.lit("foo")).to_native().schema.field_by_name("literal")
137+
result = df.select(nw.lit("foo")).to_native().schema.field("literal")
138138
assert pa.types.is_large_string(result.type)
139-
result = (
140-
df.select(nw.lit("foo", dtype=nw.String))
141-
.to_native()
142-
.schema.field_by_name("literal")
143-
)
139+
result = df.select(nw.lit("foo", dtype=nw.String)).to_native().schema.field("literal")
144140
assert pa.types.is_large_string(result.type)

0 commit comments

Comments
 (0)