1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Stefano Rivera <stefanor@debian.org>
Date: Sat, 24 Apr 2021 11:53:51 -0400
Subject: tests: Skip test_broken_linux_fallback on ppc64el, where it fails.
Bug-Upstream: https://github.com/mitogen-hq/mitogen/issues/831
---
tests/parent_test.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/parent_test.py b/tests/parent_test.py
index 558a89b..a746188 100644
--- a/tests/parent_test.py
+++ b/tests/parent_test.py
@@ -1,6 +1,7 @@
import errno
import fcntl
import os
+import platform
import signal
import sys
import time
@@ -193,6 +194,8 @@ class OpenPtyTest(testlib.TestCase):
@unittest.skipIf(condition=(os.uname()[0] != 'Linux'),
reason='Fallback only supported on Linux')
+ @unittest.skipIf(condition=(platform.machine() == 'ppc64le'),
+ reason='Workaround broken on ppc64el')
@mock.patch('os.openpty')
def test_broken_linux_fallback(self, openpty):
openpty.side_effect = OSError(errno.EPERM)
|