mirror of
https://github.com/python/cpython.git
synced 2025-09-18 22:50:26 +00:00
Issue #26536: Skip test_sio_loopback_fast_path under Windows 7
This commit is contained in:
parent
f95de0e8cc
commit
ce4271a3e5
1 changed files with 8 additions and 2 deletions
|
@ -1223,10 +1223,16 @@ class GeneralModuleTests(unittest.TestCase):
|
||||||
def test_sio_loopback_fast_path(self):
|
def test_sio_loopback_fast_path(self):
|
||||||
s = socket.socket()
|
s = socket.socket()
|
||||||
self.addCleanup(s.close)
|
self.addCleanup(s.close)
|
||||||
|
try:
|
||||||
s.ioctl(socket.SIO_LOOPBACK_FAST_PATH, True)
|
s.ioctl(socket.SIO_LOOPBACK_FAST_PATH, True)
|
||||||
|
except OSError as exc:
|
||||||
|
WSAEOPNOTSUPP = 10045
|
||||||
|
if exc.winerror == WSAEOPNOTSUPP:
|
||||||
|
self.skipTest("SIO_LOOPBACK_FAST_PATH is defined but "
|
||||||
|
"doesn't implemented in this Windows version")
|
||||||
|
raise
|
||||||
self.assertRaises(TypeError, s.ioctl, socket.SIO_LOOPBACK_FAST_PATH, None)
|
self.assertRaises(TypeError, s.ioctl, socket.SIO_LOOPBACK_FAST_PATH, None)
|
||||||
|
|
||||||
|
|
||||||
def testGetaddrinfo(self):
|
def testGetaddrinfo(self):
|
||||||
try:
|
try:
|
||||||
socket.getaddrinfo('localhost', 80)
|
socket.getaddrinfo('localhost', 80)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue