From: Zac Medico Date: Fri, 2 Dec 2011 02:07:21 +0000 (-0800) Subject: test_uniqueArray.py: fix 'is' usage PyPy incompat X-Git-Tag: v2.2.0_alpha80~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1776d5db74e7065b409b7e2d521323e8d7ea2bb5;p=portage.git test_uniqueArray.py: fix 'is' usage PyPy incompat --- diff --git a/pym/portage/tests/util/test_uniqueArray.py b/pym/portage/tests/util/test_uniqueArray.py index 2a1a20929..e23428c31 100644 --- a/pym/portage/tests/util/test_uniqueArray.py +++ b/pym/portage/tests/util/test_uniqueArray.py @@ -1,5 +1,5 @@ # test_uniqueArray.py -- Portage Unit Testing Functionality -# Copyright 2006 Gentoo Foundation +# Copyright 2006-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage import os @@ -20,5 +20,5 @@ class UniqueArrayTestCase(TestCase): result = unique_array( test[0] ) for item in test[1]: number = result.count(item) - self.assertFalse( number is not 1, msg="%s contains %s of %s, \ - should be only 1" % (result, number, item) ) + self.assertFalse( number != 1, msg=("%s contains %s of %s, " + "should be only 1") % (result, number, item) )