New submission from Terry Herron <[email protected]>:
The unittest.py module no longer accepts verbosity=2 when calling main. This
worked in Python27. Example...
unittest.main(verbosity=2)
## THE FIX IN unittest.py##
CHANGE FROM:
1547 def __init__(self, module='__main__', defaultTest=None,
1548 argv=None, testRunner=TextTestRunner,
1549 testLoader=defaultTestLoader, exit=True):
1560 self.verbosity = 1
CHANGE TO:
1547 def __init__(self, module='__main__', defaultTest=None,
1548 argv=None, testRunner=TextTestRunner,
1549 testLoader=defaultTestLoader, exit=True, verbosity=1):
1560 self.verbosity = verbosity
----------
messages: 121492
nosy: teherr
priority: normal
severity: normal
status: open
title: unittest.main(verbosity=2) broke in python31, worked when I had python27
type: behavior
versions: Python 3.1
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10456>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com