mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
check that exception messages are not empty (#22379)
Patch by Yongzhi Pan.
This commit is contained in:
parent
623ae29469
commit
c31f12d196
4 changed files with 13 additions and 15 deletions
|
@ -298,6 +298,7 @@ class BaseBytesTest:
|
|||
seq = [b"abc"] * 1000
|
||||
expected = b"abc" + b".:abc" * 999
|
||||
self.assertEqual(dot_join(seq), expected)
|
||||
self.assertRaises(TypeError, self.type2test(b" ").join, None)
|
||||
# Error handling and cleanup when some item in the middle of the
|
||||
# sequence has the wrong type.
|
||||
with self.assertRaises(TypeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue