Skip to content

Commit

Permalink
fix list.sort returns None
Browse files Browse the repository at this point in the history
  • Loading branch information
megatron-me-uk committed Jun 18, 2015
1 parent 491d3fc commit 4153b02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyspark/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,8 @@ def test_pipe_functions(self):
rdd = self.sc.parallelize(data)
with QuietTest(self.sc):
self.assertRaises(Py4JJavaError, rdd.pipe('cc').collect)
result = rdd.pipe('cat').collect().sort()
result = rdd.pipe('cat').collect()
result.sort()
[self.assertEqual(x, y) for x, y in zip(data, result)]


Expand Down

0 comments on commit 4153b02

Please sign in to comment.