Skip to content

Commit 1c75058

Browse files
fix: make tzlc content check case insensitive
Update compile_tzlc.py to perform case insensitive comparison when checking if timezone/locale compatibility test outputs match expected content. This makes the compatibility tests more robust by handling variations in capitalization that may occur across different systems. Before: content not in expected_content (case sensitive) After: content.lower() not in [c.lower() for c in expected_content] (case insensitive) This prevents false negatives when version strings have different capitalization (e.g., "Version:1.32.0" vs "version:1.32.0"). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 278a035 commit 1c75058

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/compile_tzlc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ def special_content_checker(expected_content):
1111
def _intern(filepath):
1212
with open(filepath, encoding="UTF-8") as file:
1313
content = file.read().strip()
14-
return content not in expected_content
14+
# Case insensitive comparison
15+
content_lower = content.lower()
16+
expected_content_lower = [c.lower() for c in expected_content]
17+
return content_lower not in expected_content_lower
1518

1619
return _intern
1720

0 commit comments

Comments
 (0)