Skip to content

Commit f1b02ca

Browse files
committed
Imbues the thread with "en-US" culture. A temporary work-in-progress change for now.
1 parent e81675d commit f1b02ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Microsoft.ML.TestFramework/BaseTestClass.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
// See the LICENSE file in the project root for more information.
44

55
using Microsoft.ML.Runtime.Internal.Internallearn.Test;
6+
using System.Globalization;
67
using System.IO;
8+
using System.Threading;
79
using Xunit.Abstractions;
810

911
namespace Microsoft.ML.TestFramework
@@ -18,6 +20,8 @@ public class BaseTestClass
1820

1921
public BaseTestClass(ITestOutputHelper output)
2022
{
23+
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
24+
2125
var currentAssemblyLocation = new FileInfo(typeof(BaseTestClass).Assembly.Location);
2226
_rootDir = currentAssemblyLocation.Directory.Parent.Parent.Parent.Parent.FullName;
2327
_outDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput");

0 commit comments

Comments
 (0)