[New-bugs-announce] [issue43988] Add test.support.assert_dissallow_instantiation

Erlend Egeberg Aasland report at bugs.python.org
Fri Apr 30 10:12:30 EDT 2021


New submission from Erlend Egeberg Aasland <erlend.aasland at innova.no>:

See https://github.com/python/cpython/pull/25748#discussion_r623849521:
"What do you think of adding support.assert_disallow_instanciation(type, *args) function which would check for TypeError but also check the error message? TypeError is quite generic and it might hide a bug."


Ref. bpo-43916.

----------
components: Tests
messages: 392436
nosy: erlendaasland, vstinner
priority: normal
severity: normal
status: open
title: Add test.support.assert_dissallow_instantiation

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43988>
_______________________________________


More information about the New-bugs-announce mailing list