[pytest-dev] [3.1 feature] "assert not raise exception" helper: opinions about the name

Ronny Pfannschmidt opensource at ronnypfannschmidt.de
Thu Mar 30 13:38:55 EDT 2017


Hi,

after reading, i consider the naming of "does_not_raise" much more to
the point than "wont_raise" (my original wish),
so thanks a lot for pointing out that variant :)

i would prefer a singleton.

Cheers,
Ronny


On 30.03.2017 18:50, Florian Bruhin wrote:
> Hi,
>
> On Thu, Mar 30, 2017 at 04:12:30PM +0000, Bruno Oliveira wrote:
>>    - pytest.does_not_raise;
> I like that name - seems like proper English to me, while the others
> don't.
>
>> *Another question* is if someone sees a problem in making it a singleton
>> like in the example above, or if we should force users instantiate it each
>> time: pytest.does_not_raise().
> Fine by me, I don't really have an opinion on this though.
>
> Florian
>



More information about the pytest-dev mailing list