Mercurial > public > mercurial-scm > hg-stable
diff tests/test-manifest.py @ 36360:58c1368ab629
py3: use dict.items() instead of dict.iteritems() in tests
dict.iteritems() is not present in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2353
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 19 Feb 2018 21:18:52 +0530 |
parents | 0ff336a42c39 |
children | 0147a4730420 |
line wrap: on
line diff
--- a/tests/test-manifest.py Mon Feb 19 15:28:54 2018 +0530 +++ b/tests/test-manifest.py Mon Feb 19 21:18:52 2018 +0530 @@ -223,7 +223,7 @@ self.assertEqual(want, m[b'foo']) self.assertEqual([(b'bar/baz/qux.py', BIN_HASH_2), (b'foo', BIN_HASH_1 + b'a')], - list(m.iteritems())) + list(m.items())) # Sometimes it even tries a 22-byte fake hash, but we can # return 21 and it'll work out m[b'foo'] = want + b'+' @@ -238,7 +238,7 @@ # suffix with iteration self.assertEqual([(b'bar/baz/qux.py', BIN_HASH_2), (b'foo', want)], - list(m.iteritems())) + list(m.items())) # shows up in diff self.assertEqual({b'foo': ((want, f), (h, b''))}, m.diff(clean))