Skip to content

Commit 4153b02

Browse files
fix list.sort returns None
1 parent 491d3fc commit 4153b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/pyspark/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,8 @@ def test_pipe_functions(self):
879879
rdd = self.sc.parallelize(data)
880880
with QuietTest(self.sc):
881881
self.assertRaises(Py4JJavaError, rdd.pipe('cc').collect)
882-
result = rdd.pipe('cat').collect().sort()
882+
result = rdd.pipe('cat').collect()
883+
result.sort()
883884
[self.assertEqual(x, y) for x, y in zip(data, result)]
884885

885886

0 commit comments

Comments
 (0)