Skip to content

Commit

Permalink
fix pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 19, 2011
1 parent 83ea0ba commit aa4d7d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions master/buildbot/test/unit/test_status_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
# Copyright Buildbot Team Members

from mock import Mock
from twisted.python import components
from buildbot import config
from buildbot.interfaces import IProperties
from twisted.trial import unittest
from buildbot.status.results import SUCCESS, FAILURE
from buildbot.status.mail import MailNotifier
Expand Down Expand Up @@ -421,8 +419,6 @@ def test_sendToInterestedUsers_two_builds(self):
mn = MailNotifier(fromaddr="from@example.org", lookup=None)
mn.sendMessage = Mock()

def fakeGetBuild(number):
return build
def fakeGetBuilder(buildername):
if buildername == builder.name:
return builder
Expand All @@ -431,7 +427,6 @@ def fakeGetBuildRequests(self, bsid):
return defer.succeed([{"buildername":"Builder", "brid":1}])

builder = Mock()
builder.getBuild = fakeGetBuild
builder.name = "Builder"

build1 = FakeBuildStatus(name="build")
Expand Down

0 comments on commit aa4d7d6

Please sign in to comment.