[Python-modules-commits] r11756 - in packages/pyfribidi/trunk/debian (3 files)
aelmahmoudy-guest at users.alioth.debian.org
aelmahmoudy-guest at users.alioth.debian.org
Tue Feb 16 20:41:12 UTC 2010
Date: Tuesday, February 16, 2010 @ 20:41:11
Author: aelmahmoudy-guest
Revision: 11756
* Added patch testbigString.diff to resurrect bigString test that was
removed in upstream release 0.8
Added:
packages/pyfribidi/trunk/debian/patches/testbigString.diff
Modified:
packages/pyfribidi/trunk/debian/changelog
packages/pyfribidi/trunk/debian/patches/series
Modified: packages/pyfribidi/trunk/debian/changelog
===================================================================
--- packages/pyfribidi/trunk/debian/changelog 2010-02-16 20:25:45 UTC (rev 11755)
+++ packages/pyfribidi/trunk/debian/changelog 2010-02-16 20:41:11 UTC (rev 11756)
@@ -7,8 +7,10 @@
+ Override dh_auto_test to run tests_pyfribidi.py
* Added patch buffer_overflow.diff to create an output buffer that assumes
4-byte sequences for all Unicode characters (Closes: #570068)
+ * Added patch testbigString.diff to resurrect bigString test that was
+ removed in upstream release 0.8
- -- Ø£ØÙ
د اÙÙ
ØÙ
ÙØ¯Ù (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net> Tue, 16 Feb 2010 22:24:20 +0200
+ -- Ø£ØÙ
د اÙÙ
ØÙ
ÙØ¯Ù (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net> Tue, 16 Feb 2010 22:40:15 +0200
pyfribidi (0.10.0-1) unstable; urgency=low
Modified: packages/pyfribidi/trunk/debian/patches/series
===================================================================
--- packages/pyfribidi/trunk/debian/patches/series 2010-02-16 20:25:45 UTC (rev 11755)
+++ packages/pyfribidi/trunk/debian/patches/series 2010-02-16 20:41:11 UTC (rev 11756)
@@ -1 +1,2 @@
+add_memtests.diff
buffer_overflow.diff
Added: packages/pyfribidi/trunk/debian/patches/testbigString.diff
===================================================================
--- packages/pyfribidi/trunk/debian/patches/testbigString.diff (rev 0)
+++ packages/pyfribidi/trunk/debian/patches/testbigString.diff 2010-02-16 20:41:11 UTC (rev 11756)
@@ -0,0 +1,38 @@
+Description: Resurrected bigString test that was removed in upstream release
+ 0.8
+--- a/test_pyfribidi.py
++++ b/test_pyfribidi.py
+@@ -48,6 +48,16 @@
+ """ unicode: empty string """
+ self.assertEqual(pyfribidi.log2vis(u''), u'')
+
++ def testBigString(self):
++ """ unicode: big string
++
++ It does not make sense to order such big strings, this just
++ checks that there are no size limits in pyfribidi.
++ """
++ # About 2MB string for default python build (ucs2)
++ big = (u'×' * 1024) * 1024
++ self.assertEqual(pyfribidi.log2vis(big), big)
++
+ def testDefaultDirection(self):
+ """ unicode: use RTL default """
+ self.assertEqual(pyfribidi.log2vis(u"hello - ש×××"),
+@@ -81,6 +91,16 @@
+ """ utf8: empty string """
+ self.assertEqual(pyfribidi.log2vis(''), '')
+
++ def testBigString(self):
++ """ utf8: big string
++
++ It does not make sense to order such big strings, this just
++ checks that there are no size limits in pyfribidi.
++ """
++ # About 2MB string
++ big = ('×' * 1024) * 1024
++ self.assertEqual(pyfribidi.log2vis(big), big)
++
+ def testDefaultDirection(self):
+ """ utf8: use RTL default """
+ self.assertEqual(pyfribidi.log2vis("hello - ש×××"),
More information about the Python-modules-commits
mailing list