summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-11 20:43:37 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-11 20:43:37 (GMT)
commitffa547e139e4c314a07988ba66d70096affbc09c (patch)
tree62636bf29c55cb44c39539eae51260df024f16d1
parent2c5d3cbfb88cf732adcd6c659ce875912ee70ee3 (diff)
downloadcpython-ffa547e139e4c314a07988ba66d70096affbc09c.zip
cpython-ffa547e139e4c314a07988ba66d70096affbc09c.tar.gz
cpython-ffa547e139e4c314a07988ba66d70096affbc09c.tar.bz2
Fix deprecation warning
-rw-r--r--Lib/test/test_socket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index bda1c45..3d3dd0b 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1152,8 +1152,8 @@ class BasicCANTest(unittest.TestCase):
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.')