[issue34596] [unittest] raise error if @skip is used with an argument that looks like a test method

Naitree Zhu report at bugs.python.org
Fri Sep 14 21:42:24 EDT 2018


Naitree Zhu <naitreey at gmail.com> added the comment:

Hi guys, what's our consensus on this?

- raise an exception as a fix? or
- fallback to default `reason` as a new feature?

If we choose to explicitly make `reason` optional (I mean by documenting it as such), shouldn't we also change `@skipIf` and `@skipUnless` to keep consistency?

----------

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


More information about the Python-bugs-list mailing list