From dd6d91d111e6c1d50ba78e22df878c2280223595 Mon Sep 17 00:00:00 2001 From: German Schiavon Date: Tue, 12 Sep 2017 10:33:00 +0200 Subject: [PATCH] Get default Locale --- core/src/test/scala/org/apache/spark/util/UtilsSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala b/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala index d130a1d629987..ef6fb9a94ae2c 100644 --- a/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala +++ b/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala @@ -268,7 +268,7 @@ class UtilsSuite extends SparkFunSuite with ResetSystemProperties with Logging { val hour = minute * 60 def str: (Long) => String = Utils.msDurationToString(_) - val sep = new DecimalFormatSymbols(Locale.US).getDecimalSeparator + val sep = new DecimalFormatSymbols(Locale.getDefault).getDecimalSeparator assert(str(123) === "123 ms") assert(str(second) === "1" + sep + "0 s")