]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - python/patches/00142-skip-failing-pty-tests-in-rpmbuild.patch
python: Update to 2.7.15
[people/stevee/ipfire-3.x.git] / python / patches / 00142-skip-failing-pty-tests-in-rpmbuild.patch
CommitLineData
ee14ee66
MT
1diff -up Python-2.7.6/Lib/test/test_openpty.py.tty-fail Python-2.7.6/Lib/test/test_openpty.py
2--- Python-2.7.6/Lib/test/test_openpty.py.tty-fail 2014-01-29 14:31:43.761343267 +0100
3+++ Python-2.7.6/Lib/test/test_openpty.py 2014-01-29 14:32:19.284090165 +0100
48d9a6a0
MT
4@@ -8,6 +8,7 @@ if not hasattr(os, "openpty"):
5
6
7 class OpenptyTest(unittest.TestCase):
8+ @unittest._skipInRpmBuild('sometimes fails in Koji, possibly due to a mock issue (rhbz#714627)')
9 def test(self):
10 master, slave = os.openpty()
ee14ee66
MT
11 self.addCleanup(os.close, master)
12diff -up Python-2.7.6/Lib/test/test_pty.py.tty-fail Python-2.7.6/Lib/test/test_pty.py
13--- Python-2.7.6/Lib/test/test_pty.py.tty-fail 2013-11-10 08:36:40.000000000 +0100
14+++ Python-2.7.6/Lib/test/test_pty.py 2014-01-29 14:31:43.761343267 +0100
15@@ -111,6 +111,7 @@ class PtyTest(unittest.TestCase):
48d9a6a0
MT
16 os.close(master_fd)
17
18
19+ @unittest._skipInRpmBuild('sometimes fails in Koji, possibly due to a mock issue (rhbz#714627)')
20 def test_fork(self):
21 debug("calling pty.fork()")
22 pid, master_fd = pty.fork()