Merge lp:~mago-contributors/mago/fix_suite_args into lp:~mago-contributors/mago/mago-1.0

Proposed by Ara Pulido
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mago-contributors/mago/fix_suite_args
Merge into: lp:~mago-contributors/mago/mago-1.0
Diff against target: None lines
To merge this branch: bzr merge lp:~mago-contributors/mago/fix_suite_args
Reviewer Review Type Date Requested Status
Javier Collado (community) Approve
Eitan Isaacson Approve
Review via email: mp+8812@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ara Pulido (ara) wrote :

Fixes 399679.

It is a small fix, but I would like it to be reviewed by the people more involved with the "discovery" changes.

Thanks,
Ara.

Revision history for this message
Nagappan Alagappan (nagappan) wrote :

> Fixes 399679.
>
> It is a small fix, but I would like it to be reviewed by the people more
> involved with the "discovery" changes.
>
Please commit

Thanks

Revision history for this message
Eitan Isaacson (eeejay) wrote :

Looks simple and correct.

review: Approve
Revision history for this message
Javier Collado (javier.collado) wrote :

Looks fine. Thanks for the fix.

The args property in the XmlData class creates a dictionary based on the args tag children, so it makes sense that the dictionary is passed to the test suite class __init__ method with '**' instead of with '*'. I wonder why no problem was noticed before.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mago/cmd/discovery.py'
2--- mago/cmd/discovery.py 2009-06-26 12:21:53 +0000
3+++ mago/cmd/discovery.py 2009-07-15 11:02:20 +0000
4@@ -194,7 +194,7 @@
5 module = imp.load_module(module_name, *load_args)
6
7 cls = getattr(module, class_name)
8- return cls(*self.args)
9+ return cls(**self.args)
10
11
12 def get_log_filename(self, application_target_directory):

Subscribers

People subscribed via source and target branches

to status/vote changes: