]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)
authorZackery Spytz <zspytz@gmail.com>
Thu, 12 Jul 2018 03:57:05 +0000 (21:57 -0600)
committerINADA Naoki <methane@users.noreply.github.com>
Thu, 12 Jul 2018 03:57:05 +0000 (12:57 +0900)
It was added in test_functools at 445f1b3.

Lib/test/test_functools.py

index f9f96bac6d4ed20e4aac57d6680b165104d1e80a..63149d54082a78e582c37bfd903340e36f588db3 100644 (file)
@@ -2310,7 +2310,7 @@ class TestSingleDispatch(unittest.TestCase):
         def f(*args):
             pass
         msg = 'f requires at least 1 positional argument'
-        with self.assertRaisesRegexp(TypeError, msg):
+        with self.assertRaises(TypeError, msg=msg):
             f()
 
 if __name__ == '__main__':