tests: make test-status.t compatible with test-check-module-imports.t
authorPulkit Goyal <pulkit@yandex-team.ru>
Tue, 05 Mar 2019 04:32:23 +0530
changeset 41849 2105ed01c431
parent 41848 25420df87903
child 41850 343968d5236d
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
tests/test-status.t
--- a/tests/test-status.t	Tue Mar 05 04:11:32 2019 +0530
+++ b/tests/test-status.t	Tue Mar 05 04:32:23 2019 +0530
@@ -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