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