]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - python3/patches/00142-skip-failing-pty-tests-in-rpmbuild.patch
python3: New package.
[people/ms/ipfire-3.x.git] / python3 / patches / 00142-skip-failing-pty-tests-in-rpmbuild.patch
1 diff -up Python-2.7.2/Lib/test/test_openpty.py.skip-failing-pty-tests-in-rpmbuild Python-2.7.2/Lib/test/test_openpty.py
2 --- Python-2.7.2/Lib/test/test_openpty.py.skip-failing-pty-tests-in-rpmbuild 2011-09-09 05:09:28.698920379 -0400
3 +++ Python-2.7.2/Lib/test/test_openpty.py 2011-09-09 05:10:54.805914490 -0400
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()
11 if not os.isatty(slave):
12 diff -up Python-2.7.2/Lib/test/test_pty.py.skip-failing-pty-tests-in-rpmbuild Python-2.7.2/Lib/test/test_pty.py
13 --- Python-2.7.2/Lib/test/test_pty.py.skip-failing-pty-tests-in-rpmbuild 2011-09-09 05:09:36.781919825 -0400
14 +++ Python-2.7.2/Lib/test/test_pty.py 2011-09-09 05:11:14.741913127 -0400
15 @@ -109,6 +109,7 @@ class PtyTest(unittest.TestCase):
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()