~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-01-05 03:43:04 UTC
  • mfrom: (12162.1.1 makeBug-testfix)
  • Revision ID: launchpad@pqm.canonical.com-20110105034304-47mx5dx7ae3evlgn
[testfix][r=thumper] Fix LaunchpadObjectFactory.makeBug to only try
        to create a series task when a series is specified.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1443
1443
                BugTaskStatus.FIXRELEASED, owner, when=date_closed)
1444
1444
        if milestone is not None:
1445
1445
            bugtask.transitionToMilestone(milestone, milestone.target.owner)
1446
 
        else:
 
1446
        if series is not None:
1447
1447
            task = bug.addTask(owner, series)
1448
1448
            task.transitionToStatus(status, owner)
1449
1449