[Python-modules-commits] r24408 - in packages/shiboken/trunk/debian/patches (2 files)

odyx at users.alioth.debian.org odyx at users.alioth.debian.org
Thu May 16 15:09:50 UTC 2013


    Date: Thursday, May 16, 2013 @ 15:09:48
  Author: odyx
Revision: 24408

Patch sample_overflow test to use int( instead of long( as per PEP-0237

Added:
  packages/shiboken/trunk/debian/patches/python3.3-nolong.patch
Modified:
  packages/shiboken/trunk/debian/patches/series

Added: packages/shiboken/trunk/debian/patches/python3.3-nolong.patch
===================================================================
--- packages/shiboken/trunk/debian/patches/python3.3-nolong.patch	                        (rev 0)
+++ packages/shiboken/trunk/debian/patches/python3.3-nolong.patch	2013-05-16 15:09:48 UTC (rev 24408)
@@ -0,0 +1,23 @@
+Description: PEP-0237 deprecated long( in favour of the old int(.
+Author: Didier Raboud <odyx at debian.org>
+Last-Update: 2013-05-13
+--- a/tests/samplebinding/overflow_test.py
++++ b/tests/samplebinding/overflow_test.py
+@@ -45,7 +45,7 @@
+         '''C++ function receives an long long argument and raise OverflowError if the value is negative.'''
+         val = 100
+         self.assertEqual(doubleLongLong(val), 2 * val)
+-        val = long(100)
++        val = int(100)
+         self.assertEqual(doubleLongLong(val), 2 * val)
+         val = (2 << 64) + 1
+         self.assertRaises(OverflowError, doubleLongLong, val)
+@@ -54,7 +54,7 @@
+         '''C++ function receives an unsigned long long argument and raise OverflowError if the value is negative.'''
+         val = 100
+         self.assertEqual(doubleUnsignedLongLong(val), 2 * val)
+-        val = long(100)
++        val = int(100)
+         self.assertEqual(doubleUnsignedLongLong(val), 2 * val)
+         val *= -1
+         self.assertRaises(OverflowError, doubleUnsignedLongLong, val)

Modified: packages/shiboken/trunk/debian/patches/series
===================================================================
--- packages/shiboken/trunk/debian/patches/series	2013-05-16 15:09:37 UTC (rev 24407)
+++ packages/shiboken/trunk/debian/patches/series	2013-05-16 15:09:48 UTC (rev 24408)
@@ -13,5 +13,6 @@
 cmake_selectDefaultPython.patch
 pythonversionindep.patch
 python3.3-and-multiarch.patch
+python3.3-nolong.patch
 memleak-instead-crash.patch
 static-override-fix.patch




More information about the Python-modules-commits mailing list