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 1QhiV8-0008CU-QU for garchives@archives.gentoo.org; Fri, 15 Jul 2011 13:32:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D7FD21C04C; Fri, 15 Jul 2011 13:32:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 027D121C04C for ; Fri, 15 Jul 2011 13:32:04 +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 083541BC004 for ; Fri, 15 Jul 2011 13:32:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 05B098003F for ; Fri, 15 Jul 2011 13:32:03 +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: Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/tests/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/tests/__init__.py X-VCS-Directories: gentoopm/tests/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b27ca3d69694509ceb8881cf956f1bd4ddf21428 Date: Fri, 15 Jul 2011 13:32:03 +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: d4a2bfdb906081afb730ba80f7347a17 commit: b27ca3d69694509ceb8881cf956f1bd4ddf21428 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Fri Jul 15 12:59:49 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Fri Jul 15 12:59:49 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3Db27ca3d6 Py3: Fix re-raising AssertionErrors. --- gentoopm/tests/__init__.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gentoopm/tests/__init__.py b/gentoopm/tests/__init__.py index e6a9fe6..08f50b7 100644 --- a/gentoopm/tests/__init__.py +++ b/gentoopm/tests/__init__.py @@ -22,31 +22,31 @@ class PMTestCase(unittest.TestCase): try: unittest.TestCase.assertEqual(self, *args) except AssertionError as e: - raise AssertionError('[%s] %s' % (self._pm.name, e.message)) + raise AssertionError('[%s] %s' % (self._pm.name, e.args[0])) =20 def assertNotEqual(self, *args): try: unittest.TestCase.assertNotEqual(self, *args) except AssertionError as e: - raise AssertionError('[%s] %s' % (self._pm.name, e.message)) + raise AssertionError('[%s] %s' % (self._pm.name, e.args[0])) =20 def assertTrue(self, *args): try: unittest.TestCase.assertTrue(self, *args) except AssertionError as e: - raise AssertionError('[%s] %s' % (self._pm.name, e.message)) + raise AssertionError('[%s] %s' % (self._pm.name, e.args[0])) =20 def assertFalse(self, *args): try: unittest.TestCase.assertFalse(self, *args) except AssertionError as e: - raise AssertionError('[%s] %s' % (self._pm.name, e.message)) + raise AssertionError('[%s] %s' % (self._pm.name, e.args[0])) =20 def assertRaises(self, *args): try: unittest.TestCase.assertRaises(self, *args) except AssertionError as e: - raise AssertionError('[%s] %s' % (self._pm.name, e.message)) + raise AssertionError('[%s] %s' % (self._pm.name, e.args[0])) =20 class PMTestSuiteFactory(object): def __init__(self, pm):