diff tests/test-template-engine.t @ 36327: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 817a3d20dd01
children e8d37838f5df
line wrap: on
line diff
--- a/tests/test-template-engine.t	Mon Feb 19 15:28:54 2018 +0530
+++ b/tests/test-template-engine.t	Mon Feb 19 21:18:52 2018 +0530
@@ -13,7 +13,7 @@
   >         tmpl = self.loader(t)
   >         props = self._defaults.copy()
   >         props.update(map)
-  >         for k, v in props.iteritems():
+  >         for k, v in props.items():
   >             if k in ('templ', 'ctx', 'repo', 'revcache', 'cache', 'troubles'):
   >                 continue
   >             if hasattr(v, '__call__'):