Skip to content

Commit

Permalink
don't crash on command lists containing non-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jun 13, 2010
1 parent 1bd34b5 commit 024a2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slave/buildslave/test/fake/runprocess.py
Expand Up @@ -101,7 +101,7 @@ def __init__(self, builder, command, workdir, **kwargs):
msg.append('%s: expected %r,\n got %r' % (key, exp.kwargs[key], kwargs[key]))
if msg:
msg.insert(0, 'did not get expected __init__ arguments for\n '
+ " ".join(kwargs.get('command', ['unknown command'])))
+ " ".join(map(str, kwargs.get('command', ['unknown command']))))
self._expectations[:] = [] # don't expect any more instances, since we're failing
raise AssertionError("\n".join(msg))

Expand Down

0 comments on commit 024a2a8

Please sign in to comment.