diff options
author | Raymond Hettinger <python@rcn.com> | 2016-11-24 18:50:57 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-11-24 18:50:57 (GMT) |
commit | 87d89d9714ebd6a33b00b50e8d454fec489cfe13 (patch) | |
tree | b223a85927c54b1843464ddcdb2f99bb35aeb8cf | |
parent | 6caaf372de064bf1ecc56638e45e7e365c48afdb (diff) | |
parent | 7e45b5c63c872c5a9b0b2666a1076e1845b87714 (diff) | |
download | cpython-87d89d9714ebd6a33b00b50e8d454fec489cfe13.zip cpython-87d89d9714ebd6a33b00b50e8d454fec489cfe13.tar.gz cpython-87d89d9714ebd6a33b00b50e8d454fec489cfe13.tar.bz2 |
merge
-rw-r--r-- | 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 index cbb85da..c70f685 100644 --- a/Lib/test/test_with.py +++ b/Lib/test/test_with.py @@ -117,7 +117,7 @@ class FailureTestCase(unittest.TestCase): 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 @@ class FailureTestCase(unittest.TestCase): 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 @@ class FailureTestCase(unittest.TestCase): def fooLacksExit(): foo = LacksExit() with foo: pass - self.assertRaisesRegexp(AttributeError, '__exit__', fooLacksExit) + self.assertRaisesRegex(AttributeError, '__exit__', fooLacksExit) def assertRaisesSyntaxError(self, codestr): def shouldRaiseSyntaxError(s): |