Comment 2 for bug 1552690

Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

seems this related about arch i386 how to represent integer, need find a way to handle integer and long on Python 3.

I have no i386 machine to test, Can you try the fix as following:

diff --git a/oslo_concurrency/tests/unit/test_processutils.py b/oslo_concurrency/tests/unit/test_processutils.py
index 9227ea1..448511f 100644
--- a/oslo_concurrency/tests/unit/test_processutils.py
+++ b/oslo_concurrency/tests/unit/test_processutils.py
@@ -794,7 +794,7 @@ class PrlimitTestCase(test_base.BaseTestCase):
                          'print(resource.getrlimit(resource.%s))' % resource))
         args = [sys.executable, '-c', code]
         stdout, stderr = processutils.execute(*args, prlimit=prlimit)
- expected = (value, value)
+ expected = (int(value), int(value))
         self.assertEqual(str(expected), stdout.rstrip())