From 4153b02fdb0ce1c691ec6893c6ad70e990a4e02b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 18 Jun 2015 18:45:21 +0100 Subject: [PATCH] fix list.sort returns None --- python/pyspark/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/pyspark/tests.py b/python/pyspark/tests.py index 4c067f970ec78..ca0fca2972860 100644 --- a/python/pyspark/tests.py +++ b/python/pyspark/tests.py @@ -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)]