[Python-modules-commits] [shiboken] 04/13: PEP-0237 deprecated long( in favour of the old int(.

Raphaël Hertzog hertzog at moszumanska.debian.org
Thu Aug 17 18:09:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

hertzog pushed a commit to branch master
in repository shiboken.

commit e558c2fee675850a86a1e3f10f20dd292f43c294
Author: Didier Raboud <odyx at debian.org>
Date:   Thu Oct 8 13:47:15 2015 -0700

    PEP-0237 deprecated long( in favour of the old int(.
    
    
    Last-Update: 2013-05-13
---
 tests/samplebinding/overflow_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/samplebinding/overflow_test.py b/tests/samplebinding/overflow_test.py
index 5020872..c294c13 100644
--- a/tests/samplebinding/overflow_test.py
+++ b/tests/samplebinding/overflow_test.py
@@ -45,7 +45,7 @@ class OverflowTest(unittest.TestCase):
         '''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 @@ class OverflowTest(unittest.TestCase):
         '''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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/shiboken.git



More information about the Python-modules-commits mailing list