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