Unverified Kaydet (Commit) 56d8f57b authored tarafından INADA Naoki's avatar INADA Naoki Kaydeden (comit) GitHub

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

üst 01b7d589
......@@ -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__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment