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 1Qohsm-0002qD-7l for garchives@archives.gentoo.org; Wed, 03 Aug 2011 20:17:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE42C21C228; Wed, 3 Aug 2011 20:17:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 982CE21C083 for ; Wed, 3 Aug 2011 20:17:03 +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 0A2992AC00D for ; Wed, 3 Aug 2011 20:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 748AB8003C for ; Wed, 3 Aug 2011 20:17:02 +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: <52476d69f2c7f7b134bb3b5c4fdbb58cdf9b1efc.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: 52476d69f2c7f7b134bb3b5c4fdbb58cdf9b1efc Date: Wed, 3 Aug 2011 20:17:02 +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: bcacdae5ca52e1777a4366e529b738b1 commit: 52476d69f2c7f7b134bb3b5c4fdbb58cdf9b1efc Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Aug 3 18:10:40 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Aug 3 18:10:40 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D52476d69 Assertions: use expected value on left side of comparisons. This way, we can easily adjust __eq__() & __ne__() there. --- pmstestsuite/library/case.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py index 80b4e4b..9ff757a 100644 --- a/pmstestsuite/library/case.py +++ b/pmstestsuite/library/case.py @@ -91,7 +91,7 @@ class BoolAssertionResult(AssertionResult): return self._cond =20 def __bool__(self): - return self._cond =3D=3D self._expect + return self._expect =3D=3D self._cond =20 class ContainsAssertionResult(AssertionResult): def __init__(self, name, needle, container): @@ -128,11 +128,11 @@ class EqualAssertionResult(AssertionResult): return repr(self._value) =20 def __bool__(self): - return self._value =3D=3D self._expect + return self._expect =3D=3D self._value =20 class NotEqualAssertionResult(EqualAssertionResult): def __bool__(self): - return self._value !=3D self._expect + return self._expect !=3D self._value =20 @property def expected(self):