[New-bugs-announce] [issue8462] raise test_support.TestSkipped() is used outside main() / test_main()

STINNER Victor report at bugs.python.org
Mon Apr 19 17:34:47 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

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.

----------
components: Tests
messages: 103609
nosy: haypo
severity: normal
status: open
title: raise test_support.TestSkipped() is used outside main() / test_main()
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8462>
_______________________________________


More information about the New-bugs-announce mailing list