Skip to content

Commit 2bdbf50

Browse files
tarekghstephentoub
authored andcommitted
Fix RegionInfo.DisplayName test (dotnet/corefx#42088)
Commit migrated from dotnet/corefx@974fe33
1 parent 16366a1 commit 2bdbf50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void CurrentRegion()
6868
[OuterLoop("May fail on machines with multiple language packs installed")] // https://github.com/dotnet/corefx/issues/39177
6969
public void DisplayName(string name, string expected)
7070
{
71-
using (new ThreadCultureChange(name))
71+
using (new ThreadCultureChange(null, new CultureInfo(name)))
7272
{
7373
Assert.Equal(expected, new RegionInfo(name).DisplayName);
7474
}

0 commit comments

Comments
 (0)