From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QoWe1-0001ar-4u for garchives@archives.gentoo.org; Wed, 03 Aug 2011 08:17:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51A9521C1A2; Wed, 3 Aug 2011 08:17:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2533721C1A1 for ; Wed, 3 Aug 2011 08:17:30 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E7C72AC00D for ; Wed, 3 Aug 2011 08:17:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 170DA8003C for ; Wed, 3 Aug 2011 08:17:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <5a0e0675a2d75b907ea1578fb0c80e8279cb5b91.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/library/case.py X-VCS-Directories: pmstestsuite/library/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5a0e0675a2d75b907ea1578fb0c80e8279cb5b91 Date: Wed, 3 Aug 2011 08:17:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6a9b0893fd56828e7759d6b2dd561ae4 commit: 5a0e0675a2d75b907ea1578fb0c80e8279cb5b91 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Aug 3 08:05:47 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Aug 3 08:05:47 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D5a0e0675 Drop '=3D=3D' from .assertContains stringification. --- pmstestsuite/library/case.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py index 5295002..80b4e4b 100644 --- a/pmstestsuite/library/case.py +++ b/pmstestsuite/library/case.py @@ -107,6 +107,9 @@ class ContainsAssertionResult(AssertionResult): def actual(self): return repr(self._cont) =20 + def __str__(self): + return '%s %s' % (self.actual, self.expected) + def __bool__(self): return self._need in self._cont =20