Issue 8462: raise test_support.TestSkipped() is used outside main() / test_main() (original) (raw)
Issue8462
Created on 2010-04-19 15:34 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg103609 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-04-19 15:34 |
unittest in Python 2.6 has to SkipTest exception, but test_support has a TestSkipped which can be used to skip the whole file. TestSkipped should not be used in a test function. Following tests have to be fixed: test_decimal, test_ioctl, test_largefile, test_nis, test_ossaudiodev, test_pty. Replace raise by return. To dislpay, print >>sys.stderr can be used. | ||
msg103610 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-04-19 15:36 |
TestSkipped docstring should also explain that it should not be used in a test function, but only to skip the whole file. | ||
msg105179 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-05-07 00:18 |
Python 2.6 is in bugfix only mode, I don't think that anyone would like to spend time on this. There are more important (real) bugs. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:00 | admin | set | github: 52708 |
2010-05-07 00🔞18 | vstinner | set | status: open -> closedresolution: wont fixmessages: + |
2010-04-19 15:36:47 | vstinner | set | messages: + |
2010-04-19 15:34:45 | vstinner | create |