From 7326277ce3d8dccecfe3411e17072ba2330ef6e6 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Mon, 24 Sep 2018 13:07:57 +0200 Subject: [PATCH] ICU-20085 Revert workaround for pseudolocale region codes for display names. This reverts commit 1dccd7472e9f2db4830293b9d33500ea4b4ce082. --- .../com/ibm/icu/dev/test/util/ICUResourceBundleTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java index ebf536b1232..28f77b7dc8e 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java @@ -718,13 +718,7 @@ public final class ICUResourceBundleTest extends TestFmwk { } for (int i = 0; i < locales.length; ++i) { - // The region codes used for pseudolocales don't have display names. - // That might however change in the future, in which case skipping - // testing of these names here would become irrelevant: - // https://unicode.org/cldr/trac/ticket/10880 - String country = locales[i].getCountry(); - if (!"XA".equals(country) && !"XB".equals(country) - && !hasLocalizedCountryFor(ULocale.ENGLISH, locales[i])){ + if (!hasLocalizedCountryFor(ULocale.ENGLISH, locales[i])){ errln("Could not get English localized country for " + locales[i]); } if(!hasLocalizedLanguageFor(ULocale.ENGLISH, locales[i])){ -- 2.40.0