bpo-33967: Fix wrong use of assertRaises (GH-8306)

This commit is contained in:
INADA Naoki 2018-07-17 13:44:47 +09:00 committed by GitHub
parent 01b7d58982
commit 56d8f57b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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__':