Skip to content

Commit

Permalink
avoid scalastyle errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudukim committed May 11, 2015
1 parent 1784239 commit ed46047
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class PythonRunnerSuite extends FunSuite {
assert(PythonRunner.formatPath("file:/C:/a/b/spark.py", testWindows = true) ===
"C:/a/b/spark.py")
if (Utils.isWindows) {
assert(PythonRunner.formatPath("C:\\a\\b\\spark.py", testWindows = true) === "C:/a/b/spark.py")
assert(PythonRunner.formatPath("C:\\a\\b\\spark.py", testWindows = true) ===
"C:/a/b/spark.py")
assert(PythonRunner.formatPath("C:\\a b\\spark.py", testWindows = true) ===
"C:/a b/spark.py")
}
Expand All @@ -54,7 +55,8 @@ class PythonRunnerSuite extends FunSuite {
Array("C:/a/b/spark.py"))
assert(PythonRunner.formatPaths("C:\\free.py,pie.py", testWindows = true) ===
Array("C:/free.py", "pie.py"))
assert(PythonRunner.formatPaths("lovely.py,C:\\free.py,file:/d:/fry.py", testWindows = true) ===
assert(PythonRunner.formatPaths("lovely.py,C:\\free.py,file:/d:/fry.py",
testWindows = true) ===
Array("lovely.py", "C:/free.py", "d:/fry.py"))
}
intercept[IllegalArgumentException] { PythonRunner.formatPaths("one:two,three") }
Expand Down

0 comments on commit ed46047

Please sign in to comment.