aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-22 02:04:23 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-01-22 15:32:18 -0200
commitc6bbc80f277b1c490fadef26ab64a613d45276aa (patch)
tree220326f35d8dc5f97190878077396e42e630249b /tests
parentc6898072bfb72d76d5e15e8fd59b5e86752006e3 (diff)
Fix implicitconv_numerical tests
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/samplebinding/implicitconv_numerical_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/samplebinding/implicitconv_numerical_test.py b/tests/samplebinding/implicitconv_numerical_test.py
index d81a882c5..06a7c2c27 100755
--- a/tests/samplebinding/implicitconv_numerical_test.py
+++ b/tests/samplebinding/implicitconv_numerical_test.py
@@ -58,7 +58,7 @@ class FloatImplicitConvert(NumericTester):
def testFloatAsUInt(self):
'''Float as unsigned Int'''
- self.check_value(3.14, 3, sample.acceptUInt, int)
+ self.check_value(3.14, 3, sample.acceptUInt, long)
self.assertRaises(OverflowError, sample.acceptUInt, -3.14)
def testFloatAsULong(self):
@@ -89,7 +89,7 @@ class IntImplicitConvert(NumericTester):
def testIntAsUInt(self):
'''Int as unsigned Int'''
- self.check_value(3, 3, sample.acceptUInt, int)
+ self.check_value(3, 3, sample.acceptUInt, long)
self.assertRaises(OverflowError, sample.acceptUInt, -3)
def testIntAsULong(self):
@@ -117,7 +117,7 @@ class LongImplicitConvert(NumericTester):
def testLongAsUInt(self):
'''Long as unsigned Int'''
- self.check_value(260l, 260, sample.acceptUInt, int)
+ self.check_value(260l, 260, sample.acceptUInt, long)
self.assertRaises(OverflowError, sample.acceptUInt, -42)
def testLongAsULong(self):