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())
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_processuti ls.py b/oslo_ concurrency/ tests/unit/ test_processuti ls.py concurrency/ tests/unit/ test_processuti ls.py concurrency/ tests/unit/ test_processuti ls.py (test_base. BaseTestCase) :
'print( resource. getrlimit( resource. %s))' % resource)) execute( *args, prlimit=prlimit)
self. assertEqual( str(expected) , stdout.rstrip())
index 9227ea1..448511f 100644
--- a/oslo_
+++ b/oslo_
@@ -794,7 +794,7 @@ class PrlimitTestCase
args = [sys.executable, '-c', code]
stdout, stderr = processutils.
- expected = (value, value)
+ expected = (int(value), int(value))