Patched failing NOOP test

This commit is contained in:
Tomas Radej 2014-01-30 12:35:44 +01:00
parent 9b754ebeb6
commit 112f64375b
2 changed files with 18 additions and 0 deletions

12
00191-disable-NOOP.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index 81806c9..e7881b9 100644
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -182,6 +182,7 @@ class DebuggingServerTests(unittest.TestCase):
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
smtp.quit()
+ @unittest._skipInRpmBuild("Does not work in network-free environment")
def testNOOP(self):
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
expected = (250, 'Ok')

View File

@ -848,6 +848,11 @@ Patch189: 00189-gdb-py-bt-dont-raise-exception-from-eval.patch
# rhbz#1029082
Patch190: 00190-get_python_version.patch
# 00191 #
#
# Disabling NOOP test as it fails without internet connection
Patch191: 00191-disable-NOOP.patch
# (New patches go here ^^^)
#
# When adding new patches to "python" and "python3" in Fedora 17 onwards,
@ -1197,6 +1202,7 @@ mv Modules/cryptmodule.c Modules/_cryptmodule.c
%patch187 -p1
%patch189 -p1
%patch190 -p1
%patch191 -p1
# This shouldn't be necesarry, but is right now (2.2a3)