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 1QRTOZ-0005D6-BC for garchives@archives.gentoo.org; Tue, 31 May 2011 18:10:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BDB41C14B; Tue, 31 May 2011 18:10:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D33BE1C14B for ; Tue, 31 May 2011 18:10:15 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 570171B4021 for ; Tue, 31 May 2011 18:10:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A1D698050B for ; Tue, 31 May 2011 18:10:13 +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: <78c3dee66ba29ecb937643a7e3bb650e7b87dbb9.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: basic/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: basic/phase_function_order.py X-VCS-Directories: basic/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 78c3dee66ba29ecb937643a7e3bb650e7b87dbb9 Date: Tue, 31 May 2011 18:10:13 +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: 4c39915424abb8db427bfd14f6c244f4 commit: 78c3dee66ba29ecb937643a7e3bb650e7b87dbb9 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu May 26 06:19:16 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue May 31 18:01:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D78c3dee6 Fix mutating shared phase_funcs. --- basic/phase_function_order.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/basic/phase_function_order.py b/basic/phase_function_order.p= y index 7a9cc13..80a1c4e 100644 --- a/basic/phase_function_order.py +++ b/basic/phase_function_order.py @@ -2,7 +2,7 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from PMSTestSuite.library.case import EbuildTestCase +from PMSTestSuite.library.case import EbuildTestCase, phase_func_names =20 class PhaseFunctionOrderTest(EbuildTestCase): relevant_eapis =3D (0, 2, 4) @@ -11,10 +11,8 @@ class PhaseFunctionOrderTest(EbuildTestCase): 'DESCRIPTION': 'Phase function execution order test' } =20 - def __init__(self, *args, **kwargs): - for func in self.phase_funcs: - self.phase_funcs[func].append("pms-test_append_result %s" % func) - EbuildTestCase.__init__(self, *args, **kwargs) + phase_funcs =3D dict([(x, ["pms-test_append_result %s" % x]) + for x in phase_func_names]) =20 def check_output(self, output): if self.eapi < 2: