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

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 12:33 p.m.
Message ID <e668a4d472d381cc38b9f3a69fbeb0ce@localhost.localdomain>
Download mbox | patch
Permalink /patch/32265/
State Not Applicable
Headers show

Comments

phabricator - June 18, 2018, 12:33 p.m.
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




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

Patch

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