Blob Blame History Raw
From 45756fdbe5f78eaca9192fc90010eac79b6b24e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Thu, 25 Aug 2016 14:29:27 +0200
Subject: [PATCH] Skip failing PTY tests in rpmbuild

---
 Lib/test/test_openpty.py | 1 +
 Lib/test/test_pty.py     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py
index 6384370..8cf3df4 100644
--- a/Lib/test/test_openpty.py
+++ b/Lib/test/test_openpty.py
@@ -8,6 +8,7 @@ if not hasattr(os, "openpty"):
 
 
 class OpenptyTest(unittest.TestCase):
+    @unittest._skipInRpmBuild('sometimes fails in Koji, possibly due to a mock issue (rhbz#714627)')
     def test(self):
         master, slave = os.openpty()
         self.addCleanup(os.close, master)
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
index 29297f8..772bfcc 100644
--- a/Lib/test/test_pty.py
+++ b/Lib/test/test_pty.py
@@ -111,6 +111,7 @@ class PtyTest(unittest.TestCase):
         os.close(master_fd)
 
 
+    @unittest._skipInRpmBuild('sometimes fails in Koji, possibly due to a mock issue (rhbz#714627)')
     def test_fork(self):
         debug("calling pty.fork()")
         pid, master_fd = pty.fork()
-- 
2.9.0