Skip to content

Commit

Permalink
don't fail with "expected instances not created" on wrong instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jun 12, 2010
1 parent f55d3b9 commit 57ee9dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slave/buildslave/test/fake/runprocess.py
Expand Up @@ -101,6 +101,7 @@ def __init__(self, builder, command, workdir, **kwargs):
msg.append('%s: expected %r, got %r' % (key, exp.kwargs[key], kwargs[key]))
if msg:
msg.insert(0, 'did not get expected __init__ arguments:')
self._expectations[:] = [] # don't expect any more instances, since we're failing
raise AssertionError("\n".join(msg))

self._builder = builder
Expand Down

0 comments on commit 57ee9dd

Please sign in to comment.