summaryrefslogtreecommitdiff
path: root/test/__init__.py
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2021-07-15 14:30:38 -0700
committerTim Burke <tim.burke@gmail.com>2021-07-16 10:58:00 -0700
commit1e410347f0f5464c04b21803528ede10fd6006db (patch)
tree3432100b8da384fa06f9206d35e419d734153d92 /test/__init__.py
parenta5fc6a82113c036be716e4ac088b17243c821e48 (diff)
downloadswift-1e410347f0f5464c04b21803528ede10fd6006db.tar.gz
trivial: Replace assertRaisesRegexp with assertRaisesRegex
Change-Id: Ib4549e5b0620729c7a13c06506c68570b1fd0ae7
Diffstat (limited to 'test/__init__.py')
-rw-r--r--test/__init__.py4
1 files changed, 4 insertions, 0 deletions
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