Show More
@@ -15,6 +15,7 b' from mercurial.node import (' | |||||
15 | ) |
|
15 | ) | |
16 | from mercurial import ( |
|
16 | from mercurial import ( | |
17 | policy, |
|
17 | policy, | |
|
18 | pycompat, | |||
18 | ) |
|
19 | ) | |
19 |
|
20 | |||
20 | parsers = policy.importmod(r'parsers') |
|
21 | parsers = policy.importmod(r'parsers') | |
@@ -149,7 +150,7 b' def testversionokay(testnumber, hexversi' | |||||
149 | def testversionfail(testnumber, hexversion): |
|
150 | def testversionfail(testnumber, hexversion): | |
150 | stdout, stderr = importparsers(hexversion) |
|
151 | stdout, stderr = importparsers(hexversion) | |
151 | # We include versionerrortext to distinguish from other ImportErrors. |
|
152 | # We include versionerrortext to distinguish from other ImportErrors. | |
152 | errtext = "ImportError: %s" % parsers.versionerrortext |
|
153 | errtext = b"ImportError: %s" % pycompat.sysbytes(parsers.versionerrortext) | |
153 | if errtext not in stdout: |
|
154 | if errtext not in stdout: | |
154 | printhexfail(testnumber, hexversion, stdout, |
|
155 | printhexfail(testnumber, hexversion, stdout, | |
155 | expected="stdout to contain %r" % errtext) |
|
156 | expected="stdout to contain %r" % errtext) |
General Comments 0
You need to be logged in to leave comments.
Login now