[Python-checkins] cpython (3.6): Issue #27100: Silence deprecation warning in Lib/test/test_with.py
raymond.hettinger
python-checkins at python.org
Thu Nov 24 13:51:04 EST 2016
https://hg.python.org/cpython/rev/e11df6aa5bf1
changeset: 105351:e11df6aa5bf1
branch: 3.6
parent: 105349:5a29ab5a4785
user: Raymond Hettinger <python at rcn.com>
date: Thu Nov 24 10:50:34 2016 -0800
summary:
Issue #27100: Silence deprecation warning in Lib/test/test_with.py
files:
Lib/test/test_with.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py
--- a/Lib/test/test_with.py
+++ b/Lib/test/test_with.py
@@ -117,7 +117,7 @@
def fooLacksEnter():
foo = LacksEnter()
with foo: pass
- self.assertRaisesRegexp(AttributeError, '__enter__', fooLacksEnter)
+ self.assertRaisesRegex(AttributeError, '__enter__', fooLacksEnter)
def testEnterAttributeError2(self):
class LacksEnterAndExit(object):
@@ -126,7 +126,7 @@
def fooLacksEnterAndExit():
foo = LacksEnterAndExit()
with foo: pass
- self.assertRaisesRegexp(AttributeError, '__enter__', fooLacksEnterAndExit)
+ self.assertRaisesRegex(AttributeError, '__enter__', fooLacksEnterAndExit)
def testExitAttributeError(self):
class LacksExit(object):
@@ -136,7 +136,7 @@
def fooLacksExit():
foo = LacksExit()
with foo: pass
- self.assertRaisesRegexp(AttributeError, '__exit__', fooLacksExit)
+ self.assertRaisesRegex(AttributeError, '__exit__', fooLacksExit)
def assertRaisesSyntaxError(self, codestr):
def shouldRaiseSyntaxError(s):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list