Message194790
Some tests in Python testsuite are silently skipped if requirements is not satisfied. The proposed patch adds explicit "skipUnless()" and "raise SkipTest()" so that these tests now reported as skipped.
I.e. the code like
if not condition:
def test_foo(self):
...
is replaced by
@unittest.skipUnless(condition, "requires foo")
def test_foo(self):
...
and the code like
def test_foo(self):
...
if not condition:
return
...
is replaced by
def test_foo(self):
...
if not condition:
raise unittest.SkipTest("requires foo")
... |
|
Date |
User |
Action |
Args |
2013-08-10 11:09:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, ezio.melotti, michael.foord |
2013-08-10 11:09:26 | serhiy.storchaka | set | messageid: <1376132966.91.0.713996712724.issue18702@psf.upfronthosting.co.za> |
2013-08-10 11:09:26 | serhiy.storchaka | link | issue18702 messages |
2013-08-10 11:09:26 | serhiy.storchaka | create | |
|