File: fix-tests-i386.patch

package info (click to toggle)
python-oslo.concurrency 3.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 472 kB
  • ctags: 414
  • sloc: python: 1,746; sh: 30; makefile: 26
file content (18 lines) | stat: -rw-r--r-- 781 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Strip long integer suffix from strings. A proper fix would be
             more involved so I've opened a bug upstream.
Bug: https://bugs.launchpad.net/bugs/1552690
Author: Corey Bryant <corey.bryant@canonical.com>
Forwarded: no

--- a/oslo_concurrency/tests/unit/test_processutils.py
+++ b/oslo_concurrency/tests/unit/test_processutils.py
@@ -795,7 +795,8 @@
         args = [sys.executable, '-c', code]
         stdout, stderr = processutils.execute(*args, prlimit=prlimit)
         expected = (value, value)
-        self.assertEqual(str(expected), stdout.rstrip())
+        self.assertEqual(str(expected).replace('L',''),
+                         stdout.rstrip().replace('L',''))
 
     def test_address_space(self):
         prlimit = self.limit_address_space()