changeset 20684:2761a791b113

test-filelog: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3.
author Augie Fackler <raf@durin42.com>
date Wed, 12 Mar 2014 13:21:02 -0400
parents 6cb419dd3703
children 56b1f39dd0c1
files tests/test-filelog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-filelog.py	Wed Mar 12 13:20:42 2014 -0400
+++ b/tests/test-filelog.py	Wed Mar 12 13:21:02 2014 -0400
@@ -13,7 +13,7 @@
 def addrev(text, renamed=False):
     if renamed:
         # data doesn't matter. Just make sure filelog.renamed() returns True
-        meta = dict(copyrev=hex(nullid), copy='bar')
+        meta = {'copyrev': hex(nullid), 'copy': 'bar'}
     else:
         meta = {}