diff options
author | Ned Deily <nad@acm.org> | 2014-02-03 22:02:26 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-02-03 22:02:26 (GMT) |
commit | cb306d1b592d03f56630a3551b89b97ab34492e9 (patch) | |
tree | 7435ff15313f024e31053b87fd8166e0e3207f73 | |
parent | 08df2959c88f18fb55008a043276559f3cf8f1c0 (diff) | |
parent | c5640385800ea75445824d7e8caf8386ded238dc (diff) | |
download | cpython-cb306d1b592d03f56630a3551b89b97ab34492e9.zip cpython-cb306d1b592d03f56630a3551b89b97ab34492e9.tar.gz cpython-cb306d1b592d03f56630a3551b89b97ab34492e9.tar.bz2 |
Issue #20474: Fix "unexpected success" test_socket failures on OS X 10.7+.
-rw-r--r-- | Lib/test/test_socket.py | 8 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 61362ad..3c5b5eb 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -3635,12 +3635,12 @@ class InterruptedSendTimeoutTest(InterruptedTimeoutBase, self.assertNotIsInstance(cm.exception, socket.timeout) self.assertEqual(cm.exception.errno, errno.EINTR) - # Issue #12958: The following tests have problems on Mac OS X - @support.anticipate_failure(sys.platform == "darwin") + # Issue #12958: The following tests have problems on OS X prior to 10.7 + @support.requires_mac_ver(10, 7) def testInterruptedSendTimeout(self): self.checkInterruptedSend(self.serv_conn.send, b"a"*512) - @support.anticipate_failure(sys.platform == "darwin") + @support.requires_mac_ver(10, 7) def testInterruptedSendtoTimeout(self): # Passing an actual address here as Python's wrapper for # sendto() doesn't allow passing a zero-length one; POSIX @@ -3649,7 +3649,7 @@ class InterruptedSendTimeoutTest(InterruptedTimeoutBase, self.checkInterruptedSend(self.serv_conn.sendto, b"a"*512, self.serv_addr) - @support.anticipate_failure(sys.platform == "darwin") + @support.requires_mac_ver(10, 7) @requireAttrs(socket.socket, "sendmsg") def testInterruptedSendmsgTimeout(self): self.checkInterruptedSend(self.serv_conn.sendmsg, [b"a"*512]) @@ -106,6 +106,8 @@ Tests - Issue #19990: Added tests for the imghdr module. Based on patch by Claudiu Popa. +- Issue #20474: Fix test_socket "unexpected success" failures on OS X 10.7+. + Tools/Demos ----------- |