Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Oct 11, 2014
1 parent 331ecce commit 64561e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/pyspark/streaming/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,8 @@ def test_get_or_create(self):
inputd = tempfile.mkdtemp()
outputd = tempfile.mkdtemp() + "/"

def updater(it):
for k, vs, s in it:
yield (k, sum(vs, s or 0))
def updater(vs, s):
return sum(vs, s or 0)

def setup():
conf = SparkConf().set("spark.default.parallelism", 1)
Expand Down

0 comments on commit 64561e4

Please sign in to comment.