From 1e410347f0f5464c04b21803528ede10fd6006db Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 15 Jul 2021 14:30:38 -0700 Subject: trivial: Replace assertRaisesRegexp with assertRaisesRegex Change-Id: Ib4549e5b0620729c7a13c06506c68570b1fd0ae7 --- test/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/__init__.py') diff --git a/test/__init__.py b/test/__init__.py index 363efb53c..f310816e3 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -43,6 +43,10 @@ warnings.filterwarnings('ignore', module='cryptography|OpenSSL', message=( 'Support for it is now deprecated in cryptography, ' 'and will be removed in a future release.')) +if sys.version_info < (3, 2): + import unittest + unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp + from eventlet.green import socket # make unittests pass on all locale -- cgit v1.2.1