Test selection screen empty and TypeError: __init__() takes from 1 to 6 positional arguments but 7 were given
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Critical
|
Daniel Manrique |
Bug Description
This was observed with Checkbox 0.14.9.1 and trunk rev 1874 on a Raring daily image from 20130109.
Steps to reproduce:
- Start checkbox-qt
Expected result:
- Checkbox asks for sudo password
- Test selection screen is shown
- Selected tests run
- Report shown at the end
Actual result:
- Test selection screen is empty.
- A trace (posted below) in the log.
- If using --log-level=debug, checkbox complains that all patterns in whitelist are unused
- Selecting "start testing" goes straight into generating report
- Report generation stalls forever and an error about a missing "report" attribute appears in the log.
2013-01-09 12:08:55,896 ERROR Error running event handler checkbox.
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
self.
File "<string>", line 36, in prompt_gather
File "/usr/lib/
show_progress
args=args, kwargs=kwargs)
File "/usr/lib/
verbose)
TypeError: __init__() takes from 1 to 6 positional arguments but 7 were given
checkbox/
Note that all arguments are positional, however per Python 3.3 documentation (http://
To fix this, the call to this constructor needs to be changed to use keyword arguments, save for the first (self) which *does* need to be positional.
threading.
With this change applied behavior is as expected.
Related branches
- Jeff Marcom (community): Approve
- Daniel Manrique (community): Needs Resubmitting
-
Diff: 38 lines (+8/-3)2 files modifiedcheckbox/contrib/REThread.py (+6/-3)
debian/changelog (+2/-0)
Changed in checkbox: | |
assignee: | nobody → Daniel Manrique (roadmr) |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |