[New-bugs-announce] [issue10979] setUpClass exception causes explosion with "-b"

Brandon Craig Rhodes report at bugs.python.org
Sat Jan 22 05:13:31 CET 2011


New submission from Brandon Craig Rhodes <brandon at rhodesmill.org>:

Normally, unittest cleanly reports an exception in a setUpClass method. But if I place the attached test in a directory by itself and then run "python -m unittest discover -b" from inside of the same directory, then instead of being shown the setUpClass exception I am instead shown a long traceback because unittest seems to think that it has put a stringIO in place of sys.stdout but a file is there instead.

----------
components: Library (Lib)
files: test_example.py
messages: 126816
nosy: brandon-rhodes
priority: normal
severity: normal
status: open
title: setUpClass exception causes explosion with "-b"
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file20484/test_example.py

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


More information about the New-bugs-announce mailing list