Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1235)

Unified Diff: tests/owners_unittest.py

Issue 6740012: merge in fixes for python 2.5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « owners.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/owners_unittest.py
diff --git a/tests/owners_unittest.py b/tests/owners_unittest.py
index 1ac7a5e20235f41f70f1c8ce5ad5ec65513cc2df..92029bc60f9557e1e8a14a4784e8f92dde59e896 100755
--- a/tests/owners_unittest.py
+++ b/tests/owners_unittest.py
@@ -109,8 +109,9 @@ class OwnersDatabaseTest(unittest.TestCase):
# Check that we're passed in a sequence that isn't a string.
self.assertRaises(AssertionError, db.files_not_covered_by, 'foo', [])
- self.assertRaises(AssertionError, db.files_not_covered_by,
- (f for f in ['x', 'y']), [])
+ if hasattr(owners.collections, 'Iterable'):
+ self.assertRaises(AssertionError, db.files_not_covered_by,
+ (f for f in ['x', 'y']), [])
# Check that the files are under the root.
db.root = '/checkout'
@@ -139,7 +140,9 @@ class OwnersDatabaseTest(unittest.TestCase):
# Check that we're passed in a sequence that isn't a string.
self.assertRaises(AssertionError, db.reviewers_for, 'foo')
- self.assertRaises(AssertionError, db.reviewers_for, (f for f in ['x', 'y']))
+ if hasattr(owners.collections, 'Iterable'):
+ self.assertRaises(AssertionError, db.reviewers_for,
+ (f for f in ['x', 'y']))
# Check that the files are under the root.
db.root = '/checkout'
« no previous file with comments | « owners.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698