mirror of https://github.com/python/cpython.git
Normalize whitespace
This commit is contained in:
parent
8ec784c2df
commit
6bdc498734
|
@ -980,14 +980,14 @@ def testIPv6toString(self):
|
||||||
return
|
return
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return
|
return
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
try:
|
try:
|
||||||
inet_pton(AF_INET6, '::')
|
inet_pton(AF_INET6, '::')
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.winerror == 10022:
|
if e.winerror == 10022:
|
||||||
return # IPv6 might not be installed on this PC
|
return # IPv6 might not be installed on this PC
|
||||||
|
|
||||||
f = lambda a: inet_pton(AF_INET6, a)
|
f = lambda a: inet_pton(AF_INET6, a)
|
||||||
assertInvalid = lambda a: self.assertRaises(
|
assertInvalid = lambda a: self.assertRaises(
|
||||||
(OSError, ValueError), f, a
|
(OSError, ValueError), f, a
|
||||||
|
|
Loading…
Reference in New Issue