Message from discussion
Issue 34 in pymox: Mox ExpectedMethodCallsError's _str__ method prints out one character per line
Received: by 10.236.185.161 with SMTP id u21mr360516yhm.54.1306400547290;
Thu, 26 May 2011 02:02:27 -0700 (PDT)
X-BeenThere: mox-discuss@googlegroups.com
Received: by 10.151.136.10 with SMTP id o10ls1083742ybn.3.gmail; Thu, 26 May
2011 02:02:26 -0700 (PDT)
Received: by 10.236.191.105 with SMTP id f69mr314430yhn.103.1306400546948;
Thu, 26 May 2011 02:02:26 -0700 (PDT)
Received: by 10.236.191.105 with SMTP id f69mr314429yhn.103.1306400546934;
Thu, 26 May 2011 02:02:26 -0700 (PDT)
Return-Path: <3IhfeTRAKAGUFRGHVLWH-QRUHSObJRRJOH....@codesite.bounces.google.com>
Received: from mail-gx0-f203.google.com (mail-gx0-f203.google.com [209.85.161.203])
by gmr-mx.google.com with ESMTPS id o42si668139yhl.2.2011.05.26.02.02.26
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 26 May 2011 02:02:26 -0700 (PDT)
Received-SPF: pass (google.com: domain of 3IhfeTRAKAGUFRGHVLWH-QRUHSObJRRJOH....@codesite.bounces.google.com designates 209.85.161.203 as permitted sender) client-ip=209.85.161.203;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3IhfeTRAKAGUFRGHVLWH-QRUHSObJRRJOH....@codesite.bounces.google.com designates 209.85.161.203 as permitted sender) smtp.mail=3IhfeTRAKAGUFRGHVLWH-QRUHSObJRRJOH....@codesite.bounces.google.com; dkim=pass (test mode) header...@google.com
Received: by gxk28 with SMTP id 28so1596gxk.0
for <mox-discuss@googlegroups.com>; Thu, 26 May 2011 02:02:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=beta;
h=domainkey-signature:mime-version:reply-to:x-generated-by
:x-googlecode-project:x-googlecode-issue-id:message-id:date:subject
:from:to:content-type;
bh=4dA6i1k6ocUAAiK5X4BJ8f0IRvUp0EnIUyMM2zQI0IY=;
b=edoSz07hF1xy2zwCIYplABPadyzesLhVE24KEcdDWEGltM6RLdcNoICiMouD3uyy8E
rsxBbdl+/TgAS1mGc5oQ==
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=google.com; s=beta;
h=mime-version:reply-to:x-generated-by:x-googlecode-project
:x-googlecode-issue-id:message-id:date:subject:from:to:content-type;
b=mRXYfvxtnLIVMxl3cldE/DmH8PXsJ1HsVgbf5FAnyaAEcx3pLr9OHbaB45jq3Sc7wd
2IfFToGX6RCBZoA5tHvQ==
MIME-Version: 1.0
Received: by 10.224.215.3 with SMTP id hc3mr203355qab.4.1306400546679; Thu, 26
May 2011 02:02:26 -0700 (PDT)
Reply-To: codesite-nore...@google.com
X-Generated-By: Google Code
X-GoogleCode-Project: pymox
X-GoogleCode-Issue-Id: 34
Message-ID: <0-13150623030718186343-10211961260620131008-codesite-noreply=google....@googlecode.com>
Date: Thu, 26 May 2011 09:02:26 +0000
Subject: Issue 34 in pymox: Mox ExpectedMethodCallsError's _str__ method
prints out one character per line
From: codesite-nore...@google.com
To: mox-discuss@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 34 by almostob...@gmail.com: Mox ExpectedMethodCallsError's
_str__ method prints out one character per line
http://code.google.com/p/pymox/issues/detail?id=34
See:
http://stackoverflow.com/questions/6124180/python-nose-tests-actually-the-error-is-from-mox-print-out-errors-one-character
My Fix:
Adding this line to the top of str method of ExpectedMethodCallsError in
mox.py fixes the problem (or this symptom anyway):
if isinstance(self._expected_methods, str):
self._expected_methods = self._expected_methods.split("\n")