changeset 41849: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 25420df87903
children 343968d5236d
files tests/test-status.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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