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