Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/
Date: Wed, 03 Aug 2011 08:17:37
Message-Id: 5a0e0675a2d75b907ea1578fb0c80e8279cb5b91.mgorny@gentoo
1 commit: 5a0e0675a2d75b907ea1578fb0c80e8279cb5b91
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 3 08:05:47 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 08:05:47 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=5a0e0675
7
8 Drop '==' from .assertContains stringification.
9
10 ---
11 pmstestsuite/library/case.py | 3 +++
12 1 files changed, 3 insertions(+), 0 deletions(-)
13
14 diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py
15 index 5295002..80b4e4b 100644
16 --- a/pmstestsuite/library/case.py
17 +++ b/pmstestsuite/library/case.py
18 @@ -107,6 +107,9 @@ class ContainsAssertionResult(AssertionResult):
19 def actual(self):
20 return repr(self._cont)
21
22 + def __str__(self):
23 + return '%s %s' % (self.actual, self.expected)
24 +
25 def __bool__(self):
26 return self._need in self._cont