Skip to content

Commit 79710af

Browse files
Simplify test for readability
Co-authored-by: Nuno Faria <nunofpfaria@gmail.com>
1 parent 21584a0 commit 79710af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/tests/test_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,7 @@ def test_make_map_from_two_lists():
718718
assert result.to_pylist() == [["k1"], ["k2"], ["k3"]]
719719

720720
result = df.select(f.map_values(m).alias("v")).collect()[0].column(0)
721-
for i, expected in enumerate([10, 20, 30]):
722-
assert result[i].as_py() == [expected]
721+
assert result.to_pylist() == [[10], [20], [30]]
723722

724723

725724
def test_make_map_odd_args_raises():

0 commit comments

Comments
 (0)