D6072: tests: make test-status.t compatible with test-check-module-imports.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon Mar 4 23:09:32 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise the later fails on Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6072
AFFECTED FILES
tests/test-status.t
CHANGE DETAILS
diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -290,7 +290,8 @@
$ hg status -A -Tpickle > pickle
>>> from __future__ import print_function
- >>> from mercurial.util import pickle
+ >>> from mercurial import util
+ >>> pickle = util.pickle
>>> data = sorted((x[b'status'].decode(), x[b'path'].decode()) for x in pickle.load(open("pickle", r"rb")))
>>> for s, p in data: print("%s %s" % (s, p))
! deleted
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list