##// END OF EJS Templates
tests: make test-pathencode use print_function
Pulkit Goyal -
r28918:72f68326 default
parent child Browse files
Show More
@@ -61,7 +61,6 b''
61 61 tests/test-lrucachedict.py requires print_function
62 62 tests/test-manifest.py not using absolute_import
63 63 tests/test-pathencode.py not using absolute_import
64 tests/test-pathencode.py requires print_function
65 64 tests/test-simplemerge.py not using absolute_import
66 65 tests/test-trusted.py requires print_function
67 66
@@ -5,6 +5,8 b''
5 5 # that have proven likely to expose bugs and divergent behavior in
6 6 # different encoding implementations.
7 7
8 from __future__ import print_function
9
8 10 from mercurial import store
9 11 import binascii, itertools, math, os, random, sys, time
10 12 import collections
@@ -154,10 +156,10 b' def runtests(rng, seed, count):'
154 156 r = store._hybridencode(p, True) # reference implementation in Python
155 157 if h != r:
156 158 if nerrs == 0:
157 print >> sys.stderr, 'seed:', hex(seed)[:-1]
158 print >> sys.stderr, "\np: '%s'" % p.encode("string_escape")
159 print >> sys.stderr, "h: '%s'" % h.encode("string_escape")
160 print >> sys.stderr, "r: '%s'" % r.encode("string_escape")
159 print('seed:', hex(seed)[:-1], file=sys.stderr)
160 print("\np: '%s'" % p.encode("string_escape"), file=sys.stderr)
161 print("h: '%s'" % h.encode("string_escape"), file=sys.stderr)
162 print("r: '%s'" % r.encode("string_escape"), file=sys.stderr)
161 163 nerrs += 1
162 164 return nerrs
163 165
General Comments 0
You need to be logged in to leave comments. Login now