]> Pileus Git - ~andy/sunrise/blob - dev-python/pyicu/files/pyicu-1.5-testPre27.patch
dev-python/pyicu: Version bump, using new python eclasses
[~andy/sunrise] / dev-python / pyicu / files / pyicu-1.5-testPre27.patch
1 Prevent the test suite from requiring python 2.7 or later.
2
3 2013-01-06 Martin von Gagern
4
5 References:
6 https://bugzilla.osafoundation.org/show_bug.cgi?id=13075
7
8 Index: PyICU-1.5/test/test_Collator.py
9 ===================================================================
10 --- PyICU-1.5.orig/test/test_Collator.py
11 +++ PyICU-1.5/test/test_Collator.py
12 @@ -92,7 +92,7 @@ class TestCollator(TestCase):
13          self.assertEqual(-1, collator.compare(hira_ge, kana_ge))
14          hira_ge_key = collator.getSortKey(hira_ge)
15          kana_ge_key = collator.getSortKey(kana_ge)
16 -        self.assertLess(hira_ge_key, kana_ge_key)
17 +        self.assertTrue(hira_ge_key < kana_ge_key)
18  
19      def setupCollator(self, collator):
20