D3793: py3: add `and None` to suppress return values of .write() calls

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Jun 18 08:33:34 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfb4813304c5f: py3: add `and None` to suppress return values of .write() calls (authored by pulkit, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D3793?vs=9164&id=9175#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3793?vs=9164&id=9175

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

AFFECTED FILES
  contrib/python3-whitelist
  tests/test-transplant.t

CHANGE DETAILS

diff --git a/tests/test-transplant.t b/tests/test-transplant.t
--- a/tests/test-transplant.t
+++ b/tests/test-transplant.t
@@ -836,9 +836,9 @@
   $ cd binarysource
   $ echo a > a
   $ hg ci -Am adda a
-  >>> open('b', 'wb').write(b'\0b1')
+  >>> open('b', 'wb').write(b'\0b1') and None
   $ hg ci -Am addb b
-  >>> open('b', 'wb').write(b'\0b2')
+  >>> open('b', 'wb').write(b'\0b2') and None
   $ hg ci -m changeb b
   $ cd ..
 
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -490,6 +490,7 @@
 test-tag.t
 test-tags.t
 test-template-filters.t
+test-transplant.t
 test-treemanifest.t
 test-ui-color.py
 test-ui-config.py



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


More information about the Mercurial-devel mailing list