From 37fb54f510605121b8bd7db479897636b27ef730 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Thu, 30 Jul 2009 00:25:43 +0000 Subject: [PATCH] avoid unicodedata.normalize when on Java 5 --- test/engine/test_reflection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/engine/test_reflection.py b/test/engine/test_reflection.py index a23f8617d5..8e38c9a0ba 100644 --- a/test/engine/test_reflection.py +++ b/test/engine/test_reflection.py @@ -732,7 +732,8 @@ class UnicodeReflectionTest(TestBase): metadata.create_all() reflected = set(bind.table_names()) - if not names.issubset(reflected): + # Jython 2.5 on Java 5 lacks unicodedata.normalize + if not names.issubset(reflected) and hasattr(unicodedata, 'normalize'): # Python source files in the utf-8 coding seem to normalize # literals as NFC (and the above are explicitly NFC). Maybe # this database normalizes NFD on reflection. -- 2.47.3