diff options
author | Michael Howitz <mh@gocept.com> | 2021-07-15 10:06:13 +0200 |
---|---|---|
committer | Michael Howitz <mh@gocept.com> | 2021-07-15 10:06:13 +0200 |
commit | afe9e808349251851e25c8739d8d92c3a82bfd8b (patch) | |
tree | b4527b3ac8ff36d8ba4b74b496b3d4433495e5f2 | |
parent | e1b4b57e2f89e52822ecbf7a7b802a2cab6c333e (diff) | |
download | zope-proxy-afe9e808349251851e25c8739d8d92c3a82bfd8b.tar.gz |
Fix more deprecation warnings.
-rw-r--r-- | src/zope/proxy/tests/test_proxy.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/zope/proxy/tests/test_proxy.py b/src/zope/proxy/tests/test_proxy.py index b72c711..5d7124c 100644 --- a/src/zope/proxy/tests/test_proxy.py +++ b/src/zope/proxy/tests/test_proxy.py @@ -426,8 +426,7 @@ class PyProxyBaseTestCase(unittest.TestCase): raise Missing("__getslice__") target = Get() proxy = self._makeOne(target) - with self.assertRaisesRegexp(Missing, - self.getslice): + with self.assertRaisesRegex(Missing, self.getslice): proxy[1:2] def test___setslice___against_list(self): @@ -469,8 +468,7 @@ class PyProxyBaseTestCase(unittest.TestCase): raise Missing("__setslice__") target = Set() proxy = self._makeOne(target) - with self.assertRaisesRegexp(Missing, - self.setslice): + with self.assertRaisesRegex(Missing, self.setslice): proxy[1:2] = 1 def test___setslice___dne_uses_setitem(self): @@ -483,8 +481,7 @@ class PyProxyBaseTestCase(unittest.TestCase): target = Set() proxy = self._makeOne(target) - with self.assertRaisesRegexp(Missing, - '__setitem__'): + with self.assertRaisesRegex(Missing, '__setitem__'): proxy[1:2] = 1 def test___iter___w_wrapped_iterable(self): |