]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
avoid unicodedata.normalize when on Java 5
authorPhilip Jenvey <pjenvey@underboss.org>
Thu, 30 Jul 2009 00:25:43 +0000 (00:25 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Thu, 30 Jul 2009 00:25:43 +0000 (00:25 +0000)
test/engine/test_reflection.py

index a23f8617d59a7e81cfc91470d0947955f4e45beb..8e38c9a0baf32e75d866bb1edd599e526145b1fb 100644 (file)
@@ -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.