[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)
title: setUpClass exception causes explosion with "-b"
versions: Python 2.7
Added file: http://bugs.python.org/file20484/test_example.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce