Patchwork D6481: py3: fix test-bookmarks-corner-case.t

login
register
mail settings
Submitter phabricator
Date June 5, 2019, 7:17 p.m.
Message ID <differential-rev-PHID-DREV-7kvytuskh26r23o3ywio-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/40329/
State Superseded
Headers show

Comments

phabricator - June 5, 2019, 7:17 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  For some reasons, the output of print was not going through. Replaced that
  ui.status().

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6481

AFFECTED FILES
  contrib/python3-whitelist
  tests/test-bookmarks-corner-case.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-bookmarks-corner-case.t b/tests/test-bookmarks-corner-case.t
--- a/tests/test-bookmarks-corner-case.t
+++ b/tests/test-bookmarks-corner-case.t
@@ -122,7 +122,7 @@ 
   > from mercurial import bookmarks, error, extensions
   > def wrapinit(orig, self, repo):
   >     if not os.path.exists('push-A-started'):
-  >         print('setting raced push up')
+  >         repo.ui.status(b'setting raced push up\n')
   >         with open('push-A-started', 'w'):
   >             pass
   >     clock = 300
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -36,6 +36,7 @@ 
 test-bisect3.t
 test-blackbox.t
 test-bookflow.t
+test-bookmarks-corner-case.t
 test-bookmarks-current.t
 test-bookmarks-merge.t
 test-bookmarks-pushpull.t