diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-01 18:07:21 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-01 18:07:21 -0800 |
commit | 1776d5db74e7065b409b7e2d521323e8d7ea2bb5 (patch) | |
tree | 80c2182d2639b1e7028e86a2c5ae72062ba68348 /pym/portage/tests | |
parent | 27b6a21bd8b4f9372c328b979ee0ba0a8020a2b9 (diff) | |
download | portage-1776d5db74e7065b409b7e2d521323e8d7ea2bb5.tar.gz portage-1776d5db74e7065b409b7e2d521323e8d7ea2bb5.tar.bz2 portage-1776d5db74e7065b409b7e2d521323e8d7ea2bb5.zip |
test_uniqueArray.py: fix 'is' usage PyPy incompat
Diffstat (limited to 'pym/portage/tests')
-rw-r--r-- | pym/portage/tests/util/test_uniqueArray.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) ) |