From 6b6e91e6106e84c391c9635fc830aa6081119c71 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 3 Mar 2023 15:22:06 +0100
Subject: [PATCH] Fix ICU tests on alpine / macOS. (#15177)

The word boundary behaviour is slightly different, consider it
acceptable for the tests.
---
 changelog.d/15177.bugfix             | 1 +
 tests/storage/test_user_directory.py | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 changelog.d/15177.bugfix

diff --git a/changelog.d/15177.bugfix b/changelog.d/15177.bugfix
new file mode 100644
index 0000000000..b9764947eb
--- /dev/null
+++ b/changelog.d/15177.bugfix
@@ -0,0 +1 @@
+Fix test_icu_word_boundary_punctuation for alpine / macos installed ICU versions.
diff --git a/tests/storage/test_user_directory.py b/tests/storage/test_user_directory.py
index 43b724c4dd..8c72aa1722 100644
--- a/tests/storage/test_user_directory.py
+++ b/tests/storage/test_user_directory.py
@@ -696,6 +696,8 @@ class UserDirectoryICUTestCase(HomeserverTestCase):
                 ["lazy'fox", "jumped", "over", "the", "dog"],
                 # ICU 70 on Ubuntu 22.04
                 ["lazy'fox", "jumped:over", "the.dog"],
+                # pyicu 2.10.2 on Alpine edge / macOS
+                ["lazy'fox", "jumped", "over", "the.dog"],
             ),
         )