Skip to content

Commit 4e9ebe5

Browse files
committed
[Unit tests] ICU tests minor change
1 parent 7bf3b95 commit 4e9ebe5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_ICU.py

+3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
icu_data_folders = ICU_DATA_FOLDERS_WINDOWS
1717

1818

19+
ICU_TEST_SKIP = os.name in ("nt", ) and os.getenv('PROGRAMDATA') is None
20+
1921
class TestICU(unittest.TestCase):
22+
@pytest.mark.skipif(ICU_TEST_SKIP, reason = "ICU data file not available")
2023
def testIcu(self):
2124
icu_paths = (os.path.join(folder, "icudtl.dat") for folder in icu_data_folders)
2225
self.assertTrue(any(os.path.exists(icu) for icu in icu_paths))

0 commit comments

Comments
 (0)