Revision: 3681
Author: jussi.ao.malinen
Date: Mon May 31 02:17:22 2010
Log: fixed unit test
http://code.google.com/p/robotframework/source/detail?r=3681

Modified:
 /trunk/utest/utils/test_unic.py

=======================================
--- /trunk/utest/utils/test_unic.py     Wed May  5 04:39:32 2010
+++ /trunk/utest/utils/test_unic.py     Mon May 31 02:17:22 2010
@@ -30,12 +30,13 @@

 class TestUnic(unittest.TestCase):

-    def test_unicode_nfc_and_nfd_decomposition_equality(self):
-        text = u'Hyv\xe4'
-        assert_equals(unic(unicodedata.normalize('NFC', text)), text)
-        # In Mac filesystem umlaut characters are presented in NFD-format.
-        # This is to check that unic normalizes all strings to NFC
-        assert_equals(unic(unicodedata.normalize('NFD', text)), text)
+    if not is_jython:
+        def test_unicode_nfc_and_nfd_decomposition_equality(self):
+            text = u'Hyv\xe4'
+            assert_equals(unic(unicodedata.normalize('NFC', text)), text)
+ # In Mac filesystem umlaut characters are presented in NFD-format.
+            # This is to check that unic normalizes all strings to NFC
+            assert_equals(unic(unicodedata.normalize('NFD', text)), text)

     def test_object_containing_unicode_repr(self):
         assert_equals(unic(UnicodeRepr()), u'Hyv\xe4')

Reply via email to