1 |
commit: 1776d5db74e7065b409b7e2d521323e8d7ea2bb5 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 2 02:07:21 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 2 02:07:21 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1776d5db |
7 |
|
8 |
test_uniqueArray.py: fix 'is' usage PyPy incompat |
9 |
|
10 |
--- |
11 |
pym/portage/tests/util/test_uniqueArray.py | 6 +++--- |
12 |
1 files changed, 3 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/tests/util/test_uniqueArray.py b/pym/portage/tests/util/test_uniqueArray.py |
15 |
index 2a1a209..e23428c 100644 |
16 |
--- a/pym/portage/tests/util/test_uniqueArray.py |
17 |
+++ b/pym/portage/tests/util/test_uniqueArray.py |
18 |
@@ -1,5 +1,5 @@ |
19 |
# test_uniqueArray.py -- Portage Unit Testing Functionality |
20 |
-# Copyright 2006 Gentoo Foundation |
21 |
+# Copyright 2006-2011 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
from portage import os |
25 |
@@ -20,5 +20,5 @@ class UniqueArrayTestCase(TestCase): |
26 |
result = unique_array( test[0] ) |
27 |
for item in test[1]: |
28 |
number = result.count(item) |
29 |
- self.assertFalse( number is not 1, msg="%s contains %s of %s, \ |
30 |
- should be only 1" % (result, number, item) ) |
31 |
+ self.assertFalse( number != 1, msg=("%s contains %s of %s, " |
32 |
+ "should be only 1") % (result, number, item) ) |