diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-03 11:14:55 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-03 12:25:11 +0000 |
| commit | e796600c9663a26ccf1929aca8336eb0cb23fe5d (patch) | |
| tree | d59e8b19dc85aa28bb90c3764b16cb0357e3a4c6 /sources/shiboken2/tests/samplebinding/overflow_test.py | |
| parent | 4d918d73e94c2fea125107369a650dff99513e0c (diff) | |
Remove Python2 from shiboken tests
Task-number: PYSIDE-1339
Task-number: PYSIDE-904
Change-Id: I78f18430eecf37c6a66593ac3a725d92b5a6c061
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/overflow_test.py')
| -rw-r--r-- | sources/shiboken2/tests/samplebinding/overflow_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken2/tests/samplebinding/overflow_test.py b/sources/shiboken2/tests/samplebinding/overflow_test.py index 56a5d98c7..237bb6615 100644 --- a/sources/shiboken2/tests/samplebinding/overflow_test.py +++ b/sources/shiboken2/tests/samplebinding/overflow_test.py @@ -40,7 +40,7 @@ from shiboken_paths import init_paths init_paths() from sample import * -from py3kcompat import IS_PY3K, long + class OverflowTest(unittest.TestCase): '''Test case for overflowing C++ numeric types.''' @@ -56,7 +56,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) @@ -65,11 +65,11 @@ 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 = -100 self.assertRaises(OverflowError, doubleUnsignedLongLong, val) - val = long(-200) + val = int(-200) self.assertRaises(OverflowError, doubleUnsignedLongLong, val) def testOverflow(self): |
