[python/f15] 2.7.1-10: don't run test_openpty and test_pty during %check (rhbz#714627)

dmalcolm dmalcolm at fedoraproject.org
Thu Sep 8 16:12:20 UTC 2011


commit 311cf2d5a072d613a31cb580fcb1a5668df9af02
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Thu Sep 8 12:11:00 2011 -0400

    2.7.1-10: don't run test_openpty and test_pty during %check (rhbz#714627)
    
    Workaround for rhbz#714627

 python.spec |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/python.spec b/python.spec
index 0aa20c2..93ea449 100644
--- a/python.spec
+++ b/python.spec
@@ -94,7 +94,7 @@ Summary: An interpreted, interactive, object-oriented programming language
 Name: %{python}
 # Remember to also rebase python-docs when changing this:
 Version: 2.7.1
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: Python
 Group: Development/Languages
 Requires: %{python}-libs%{?_isa} = %{version}-%{release}
@@ -1161,6 +1161,34 @@ CheckPython() {
   #  AssertionError: IOError not raised
   #  ----------------------------------------------------------------------
   #
+  # test_openpty:
+  #   Fails in Koji, possibly due to a mock issue (rhbz#714627)
+  #  ======================================================================
+  #  ERROR: test (test.test_openpty.OpenptyTest)
+  #  ----------------------------------------------------------------------
+  #  Traceback (most recent call last):
+  #    File "/builddir/build/BUILD/Python-2.7.2/Lib/test/test_openpty.py", line 12, in test
+  #      master, slave = os.openpty()
+  #  OSError: [Errno 2] No such file or directory
+  #  ----------------------------------------------------------------------
+  #
+  # test_pty:
+  #   Fails in Koji, possibly due to a mock issue (rhbz#714627)
+  #  ======================================================================
+  #  ERROR: test_fork (test.test_pty.PtyTest)
+  #  ----------------------------------------------------------------------
+  #  Traceback (most recent call last):
+  #    File "/builddir/build/BUILD/Python-2.7.2/Lib/test/test_pty.py", line 114, in test_fork
+  #      pid, master_fd = pty.fork()
+  #    File "/builddir/build/BUILD/Python-2.7.2/Lib/pty.py", line 107, in fork
+  #      master_fd, slave_fd = openpty()
+  #    File "/builddir/build/BUILD/Python-2.7.2/Lib/pty.py", line 29, in openpty
+  #      master_fd, slave_name = _open_terminal()
+  #    File "/builddir/build/BUILD/Python-2.7.2/Lib/pty.py", line 70, in _open_terminal
+  #      raise os.error, 'out of pty devices'
+  #  OSError: out of pty devices
+  #  ----------------------------------------------------------------------
+  #
   # test_subprocess:
   #    Fails in Koji with:
   #  ======================================================================
@@ -1190,6 +1218,8 @@ CheckPython() {
       test_urllib2 \
       test_file \
       test_file2k \
+      test_openpty \
+      test_pty \
       test_subprocess \
       test_float \
   %{nil}"
@@ -1661,6 +1691,10 @@ rm -fr %{buildroot}
 # payload file would be unpackaged)
 
 %changelog
+* Thu Sep  8 2011 David Malcolm <dmalcolm at redhat.com> - 2.7.1-10
+- don't run test_openpty and test_pty during %%check (workaround for
+rhbz#714627)
+
 * Tue Jun 07 2011 Dennis Gilmore <dennis at ausil.us> - 2.7.1-9
 - fix sparc building by excluding failing tests RHBZ#711584
 


More information about the scm-commits mailing list