This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: test_socket failures on OS X due to fixed "expected failures"
类型: Stage: resolved
Components: Tests Versions: Python 3.3, Python 3.4
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: ned.deily 抄送列表: larry, ncoghlan, ned.deily, python-dev
优先级: high 关键字: patch

Created on 2014-02-01 10:11 by ned.deily, last changed 2022-04-11 14:57 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
issue20474.patch ned.deily, 2014-02-01 10:15 review
Messages (2)
msg209882 - (view) Author: Ned Deily (ned.deily) * (Python committer) 日期: 2014-02-01 10:11
Three "send timeout" test cases in test_socket were changed by a4e4facad164 for Issue12958 to be "expected failures" on OS X because of observed failures on the OS X buildbots running OS X 10.6 (Snow Leopard) and earlier.

testInterruptedSendTimeout (test.test_socket.InterruptedSendTimeoutTest) ... unexpected success
testInterruptedSendmsgTimeout (test.test_socket.InterruptedSendTimeoutTest) ... unexpected success
testInterruptedSendtoTimeout (test.test_socket.InterruptedSendTimeoutTest) ... unexpected success

It seems that the platform bugs causing the failures were fixed in OS X 10.7 so that the "expected failures" no longer fail.  However, the change in behavior had not been noticed because, until the recent change to unittest in Issue20165, unittest did not fail when there were unexpected successes.  Now it does fail, causing test_socket to fail on OS X 10.7+ for 3.4.  On 3.3 the "unexpected success" failures are silently skipped.  The attached patch changes the test cases to be skipped for OS X versions prior to 10.7 rather than to always expect failure on OS X.
msg210167 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2014-02-03 22:02
New changeset 63efacd80f8e by Ned Deily in branch '3.3':
Issue #20474: Fix "unexpected success" test_socket failures on OS X 10.7+.
http://hg.python.org/cpython/rev/63efacd80f8e

New changeset 036671354dc0 by Ned Deily in branch 'default':
Issue #20474: Fix "unexpected success" test_socket failures on OS X 10.7+.
http://hg.python.org/cpython/rev/036671354dc0
历史
日期 用户 动作 参数
2022-04-11 14:57:57admin修改github: 64673
2014-02-03 22:04:13ned.deily修改状态: open -> closed
assignee: ned.deily
resolution: fixed
stage: patch review -> resolved
2014-02-03 22:02:55python-dev修改抄送: + python-dev
消息: + msg210167
2014-02-01 10:15:21ned.deily修改文件: + issue20474.patch
2014-02-01 10:15:06ned.deily修改文件: - issue20474.patch
2014-02-01 10:13:34ned.deily修改文件: + issue20474.patch
keywords: + patch
2014-02-01 10:11:49ned.deily创建