changeset 20685:56b1f39dd0c1

test-url: 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:17 -0400
parents 2761a791b113
children c69f62906358
files tests/test-url.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-url.py	Wed Mar 12 13:21:02 2014 -0400
+++ b/tests/test-url.py	Wed Mar 12 13:21:17 2014 -0400
@@ -5,7 +5,7 @@
         print (a, b)
 
 def cert(cn):
-    return dict(subject=((('commonName', cn),),))
+    return {'subject': ((('commonName', cn),),)}
 
 from mercurial.sslutil import _verifycert