Strictly from a user perspective here, but assertRaises(None) seems most
clear & intuitive.

On Fri, Mar 31, 2017 at 2:13 AM, Florian Schulze <[email protected]>
wrote:

> On 30 Mar 2017, at 23:36, holger krekel wrote:
>
> On Thu, Mar 30, 2017 at 23:08 +0200, Ronny Pfannschmidt wrote:
>>
>>> I do because we make something a "magical god function" again, more of
>>> the rant tommorow.
>>>
>>
>> God functions or objects are usually ones that do many different things.
>> Here, "pytest.raises" deals with the dependent code block's exception
>> raising behaviour -- allowing None (to signal: no exception expected)
>> does not change or much extend this functionality.
>>
>
> I think it also reads well. Which exceptions are expected to be raised?
> None.
>
> Regards,
> Florian Schulze
>
> _______________________________________________
> pytest-dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/pytest-dev
>
_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to