[python3/python3.3] skip some tests within test_socket (patch 163)

dmalcolm dmalcolm at fedoraproject.org
Tue Jul 24 20:00:18 UTC 2012


commit 48d20485dbef969c32d388eec4e1fee3cdf7fa90
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Tue Jul 24 15:59:17 2012 -0400

    skip some tests within test_socket (patch 163)

 ...disable-parts-of-test_socket-in-rpm-build.patch |   11 +++++++++++
 python3.spec                                       |    9 ++++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/00163-disable-parts-of-test_socket-in-rpm-build.patch b/00163-disable-parts-of-test_socket-in-rpm-build.patch
new file mode 100644
index 0000000..0e28036
--- /dev/null
+++ b/00163-disable-parts-of-test_socket-in-rpm-build.patch
@@ -0,0 +1,11 @@
+diff -up Python-3.3.0b1/Lib/test/test_socket.py.disable-test_socket-in-rpm-builds Python-3.3.0b1/Lib/test/test_socket.py
+--- Python-3.3.0b1/Lib/test/test_socket.py.disable-test_socket-in-rpm-builds	2012-07-24 15:02:30.823355067 -0400
++++ Python-3.3.0b1/Lib/test/test_socket.py	2012-07-24 15:08:13.021354999 -0400
+@@ -2188,6 +2188,7 @@ class RecvmsgGenericStreamTests(RecvmsgG
+     # Tests which require a stream socket and can use either recvmsg()
+     # or recvmsg_into().
+ 
++    @unittest._skipInRpmBuild('fails intermittently when run within Koji')
+     def testRecvmsgEOF(self):
+         # Receive end-of-stream indicator (b"", peer socket closed).
+         msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock, 1024)
diff --git a/python3.spec b/python3.spec
index e77335d..13ac725 100644
--- a/python3.spec
+++ b/python3.spec
@@ -489,6 +489,12 @@ Patch161: 00161-fix-test_tools-directory.patch
 # Not yet sent upstream
 Patch162: 00162-distutils-sysconfig-fix-CC-options.patch
 
+# 00163 #
+# Some tests within test_socket fail intermittently when run inside Koji;
+# disable them using unittest._skipInRpmBuild
+# Not yet sent upstream
+Patch163: 00163-disable-parts-of-test_socket-in-rpm-build.patch
+
 # (New patches go here ^^^)
 #
 # When adding new patches to "python" and "python3" in Fedora 17 onwards,
@@ -722,6 +728,7 @@ done
 %patch160 -p1
 %patch161 -p1
 %patch162 -p1
+%patch163 -p1
 
 # Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there
 # are many differences between 2.6 and the Python 3 library.
@@ -1590,7 +1597,7 @@ _decimal and _lzma modules; make collections modules explicit in payload again
 upstream commit 3f9b3b6f7ff0); fix test failures (patches 160 and 161);
 workaround erroneously shared _sysconfigdata.py upstream issue #14774; fix
 distutils.sysconfig traceback (patch 162); add BuildRequires: xz-devel (for
-_lzma module)
+_lzma module); skip some tests within test_socket (patch 163)
 
 * Fri Jun 22 2012 David Malcolm <dmalcolm at redhat.com> - 3.2.3-10
 - use macro for power64 (rhbz#834653)


More information about the scm-commits mailing list