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

Berker Peksag report at bugs.python.org
Thu Sep 13 19:44:47 EDT 2018


Berker Peksag <berker.peksag at gmail.com> added the comment:

It would be nice to make *reason* optional. Every time I needed to use @unittest.skip() (even if I wanted to use it temporarily), I ended up passing some random string as reason or use 'raise SkipTest' directly.

If we decide to keep *reason* required, I agree with Serhiy's proposal.

----------
nosy: +berker.peksag

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


More information about the Python-bugs-list mailing list