Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87d89d9

Browse files
committed
merge
2 parents 6caaf37 + 7e45b5c commit 87d89d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_with.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __exit__(self, type, value, traceback):
117117
def fooLacksEnter():
118118
foo = LacksEnter()
119119
with foo: pass
120-
self.assertRaisesRegexp(AttributeError, '__enter__', fooLacksEnter)
120+
self.assertRaisesRegex(AttributeError, '__enter__', fooLacksEnter)
121121

122122
def testEnterAttributeError2(self):
123123
class LacksEnterAndExit(object):
@@ -126,7 +126,7 @@ class LacksEnterAndExit(object):
126126
def fooLacksEnterAndExit():
127127
foo = LacksEnterAndExit()
128128
with foo: pass
129-
self.assertRaisesRegexp(AttributeError, '__enter__', fooLacksEnterAndExit)
129+
self.assertRaisesRegex(AttributeError, '__enter__', fooLacksEnterAndExit)
130130

131131
def testExitAttributeError(self):
132132
class LacksExit(object):
@@ -136,7 +136,7 @@ def __enter__(self):
136136
def fooLacksExit():
137137
foo = LacksExit()
138138
with foo: pass
139-
self.assertRaisesRegexp(AttributeError, '__exit__', fooLacksExit)
139+
self.assertRaisesRegex(AttributeError, '__exit__', fooLacksExit)
140140

141141
def assertRaisesSyntaxError(self, codestr):
142142
def shouldRaiseSyntaxError(s):

0 commit comments

Comments
 (0)