Xiang Zhang added the comment:

The constructor has been well tested in 
https://hg.python.org/cpython/file/tip/Lib/test/test_bytes.py#l111. It looks 
like that the original author only wants to guarantee the exception type but 
not message. So I didn't add a assertRaisesRegex test.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27460>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to