Skip to content

Commit

Permalink
Merge pull request mesos#544 from kayousterhout/fix_test_warnings. Cl…
Browse files Browse the repository at this point in the history
…oses mesos#544.

Fixed warnings in test compilation.

This commit fixes two problems: a redundant import, and a
deprecated function.

Author: Kay Ousterhout <kayousterhout@gmail.com>

== Merge branch commits ==

commit da9d2e13ee4102bc58888df0559c65cb26232a82
Author: Kay Ousterhout <kayousterhout@gmail.com>
Date:   Wed Feb 5 11:41:51 2014 -0800

    Fixed warnings in test compilation.

    This commit fixes two problems: a redundant import, and a
    deprecated function.
  • Loading branch information
kayousterhout authored and rxin committed Feb 5, 2014
1 parent f7fd80d commit cc14ba9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package org.apache.spark.api.python

import org.scalatest.FunSuite
import org.scalatest.matchers.ShouldMatchers
import org.apache.spark.api.python.PythonRDD

import java.io.{ByteArrayOutputStream, DataOutputStream}

Expand Down
2 changes: 1 addition & 1 deletion core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class RDDSuite extends FunSuite with SharedSparkContext {
val partitionSums = nums.mapPartitions(iter => Iterator(iter.reduceLeft(_ + _)))
assert(partitionSums.collect().toList === List(3, 7))

val partitionSumsWithSplit = nums.mapPartitionsWithSplit {
val partitionSumsWithSplit = nums.mapPartitionsWithIndex {
case(split, iter) => Iterator((split, iter.reduceLeft(_ + _)))
}
assert(partitionSumsWithSplit.collect().toList === List((0, 3), (1, 7)))
Expand Down

0 comments on commit cc14ba9

Please sign in to comment.