Skip to content
Browse files

Fix Python saveAsTextFile doctest to not expect order to be preserved

  • Loading branch information...
1 parent 2060400 commit 9a731f5a6dd56f5bc9eda3bb3177f7bbbb251c31 @jey jey committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/pyspark/rdd.py
View
2 python/pyspark/rdd.py
@@ -399,7 +399,7 @@ def saveAsTextFile(self, path):
>>> sc.parallelize(range(10)).saveAsTextFile(tempFile.name)
>>> from fileinput import input
>>> from glob import glob
- >>> ''.join(input(glob(tempFile.name + "/part-0000*")))
+ >>> ''.join(sorted(input(glob(tempFile.name + "/part-0000*"))))
'0\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n'
"""
def func(split, iterator):

0 comments on commit 9a731f5

Please sign in to comment.
Something went wrong with that request. Please try again.