Mercurial > hg
comparison tests/test-status.t @ 41844:2105ed01c431
tests: make test-status.t compatible with test-check-module-imports.t
Otherwise the later fails on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D6072
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 05 Mar 2019 04:32:23 +0530 |
parents | 67333663d49e |
children | 75334e5b519e |
comparison
equal
deleted
inserted
replaced
41843:25420df87903 | 41844:2105ed01c431 |
---|---|
288 } | 288 } |
289 ] | 289 ] |
290 | 290 |
291 $ hg status -A -Tpickle > pickle | 291 $ hg status -A -Tpickle > pickle |
292 >>> from __future__ import print_function | 292 >>> from __future__ import print_function |
293 >>> from mercurial.util import pickle | 293 >>> from mercurial import util |
294 >>> pickle = util.pickle | |
294 >>> data = sorted((x[b'status'].decode(), x[b'path'].decode()) for x in pickle.load(open("pickle", r"rb"))) | 295 >>> data = sorted((x[b'status'].decode(), x[b'path'].decode()) for x in pickle.load(open("pickle", r"rb"))) |
295 >>> for s, p in data: print("%s %s" % (s, p)) | 296 >>> for s, p in data: print("%s %s" % (s, p)) |
296 ! deleted | 297 ! deleted |
297 ? pickle | 298 ? pickle |
298 ? unknown | 299 ? unknown |