diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-07-11 21:57:05 -0600 |
---|---|---|
committer | INADA Naoki <methane@users.noreply.github.com> | 2018-07-12 12:57:05 +0900 |
commit | 9e9b2c32a34594e901b5b9a03c561a2a2bf63ece (patch) | |
tree | 1b3a19d259b479d064b72f1b723eb14b97f63520 /Lib/test/test_functools.py | |
parent | 993030aac576710a46b3dd0b4864f819d4a94145 (diff) | |
download | cpython-git-9e9b2c32a34594e901b5b9a03c561a2a2bf63ece.tar.gz |
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)
It was added in test_functools at 445f1b3.
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r-- | Lib/test/test_functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index f9f96bac6d..63149d5408 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -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__': |