diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-07-17 04:44:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-17 04:44:47 (GMT) |
commit | 56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2 (patch) | |
tree | 6e48b61f083466b58c268ea161aa6cfe0e9a41e4 | |
parent | 01b7d5898262dbe0e9edb321b3be9a34da196f6f (diff) | |
download | cpython-56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2.zip cpython-56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2.tar.gz cpython-56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2.tar.bz2 |
bpo-33967: Fix wrong use of assertRaises (GH-8306)
-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 63149d5..10bf0a2 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.assertRaises(TypeError, msg=msg): + with self.assertRaisesRegex(TypeError, msg): f() if __name__ == '__main__': |