diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-09-28 16:56:42 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-09-28 16:56:42 (GMT) |
commit | c31f12d196455e916fcbcffc2cc2a3329abe70ed (patch) | |
tree | a76af66d38129fd6c50041f0878f24e8d07d512d /Lib/test/test_bytes.py | |
parent | 623ae294694dcf11eced4a9d24abf66a571a9d04 (diff) | |
download | cpython-c31f12d196455e916fcbcffc2cc2a3329abe70ed.zip cpython-c31f12d196455e916fcbcffc2cc2a3329abe70ed.tar.gz cpython-c31f12d196455e916fcbcffc2cc2a3329abe70ed.tar.bz2 |
check that exception messages are not empty (#22379)
Patch by Yongzhi Pan.
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r-- | Lib/test/test_bytes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 43b6c82..1a351a5 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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): |