[Python-checkins] cpython: Fix deprecation warning
antoine.pitrou
python-checkins at python.org
Tue Oct 11 22:48:12 CEST 2011
http://hg.python.org/cpython/rev/e2cb12decd9f
changeset: 72870:e2cb12decd9f
parent: 72868:22ce0c81360e
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Oct 11 22:43:37 2011 +0200
summary:
Fix deprecation warning
files:
Lib/test/test_socket.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1152,8 +1152,8 @@
def testTooLongInterfaceName(self):
# most systems limit IFNAMSIZ to 16, take 1024 to be sure
with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
- self.assertRaisesRegexp(socket.error, 'interface name too long',
- s.bind, ('x' * 1024,))
+ self.assertRaisesRegex(socket.error, 'interface name too long',
+ s.bind, ('x' * 1024,))
@unittest.skipUnless(hasattr(socket, "CAN_RAW_LOOPBACK"),
'socket.CAN_RAW_LOOPBACK required for this test.')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list