Merge lp:~nick-moffitt/charm-helpers/fix-arg-count into lp:charm-helpers
Proposed by
Nick Moffitt
Status: | Needs review |
---|---|
Proposed branch: | lp:~nick-moffitt/charm-helpers/fix-arg-count |
Merge into: | lp:charm-helpers |
Diff against target: |
12 lines (+1/-1) 1 file modified
charmhelpers/core/services/base.py (+1/-1) |
To merge this branch: | bzr merge lp:~nick-moffitt/charm-helpers/fix-arg-count |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Kavanagh | Needs Fixing | ||
Review via email: mp+324493@code.launchpad.net |
Description of the change
Someone had changed the argument count logic at some point, seemingly forgetting that "self" is one of the arguments in an object's method.
To post a comment you must log in.
Unmerged revisions
- 746. By Nick Moffitt
-
foo.bar(baz, quux) is three arguments, not two.
There are some tests around this in tests/core/ test_services. py but (obviously?) none of them picked this up. It would be really good if we could have a test for this that picks up this problem and ensures that nobody will repeat the issue in the future.