Cast the value to the "int_type" representing the "long" value for test_rint64, so the test works again with Python 3. --- python/t/test090RetValues.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/t/test090RetValues.py b/python/t/test090RetValues.py index 7ff51f0..24d97b4 100644 --- a/python/t/test090RetValues.py +++ b/python/t/test090RetValues.py @@ -19,6 +19,7 @@ import unittest import guestfs +from .tests_helper import * class Test090PythonRetValues (unittest.TestCase): @@ -33,7 +34,7 @@ class Test090PythonRetValues (unittest.TestCase): def test_rint64 (self): g = guestfs.GuestFS () - self.assertAlmostEqual (g.internal_test_rint64 ("10"), 10L, places=1) + self.assertAlmostEqual (g.internal_test_rint64 ("10"), int_type (10), places=1) self.assertRaises (RuntimeError, g.internal_test_rint64err) -- 2.5.0