Patchwork D3128: py3: suppress the output of open() using `and None`

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 1:48 p.m.
Message ID <e5e75973e568e3ae21d0791304889818@localhost.localdomain>
Download mbox | patch
Permalink /patch/30370/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 1:48 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG87c4253bebdb: py3: suppress the output of open() using `and None` (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3128?vs=7711&id=7726

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

AFFECTED FILES
  tests/test-diffstat.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-diffstat.t b/tests/test-diffstat.t
--- a/tests/test-diffstat.t
+++ b/tests/test-diffstat.t
@@ -35,7 +35,7 @@ 
 
   $ hg ci -m appenda
 
-  >>> open("c", "wb").write(b"\0")
+  >>> open("c", "wb").write(b"\0") and None
   $ touch d
   $ hg add c d
 
@@ -54,7 +54,7 @@ 
 
   $ hg ci -m createb
 
-  >>> open("file with spaces", "wb").write(b"\0")
+  >>> open("file with spaces", "wb").write(b"\0") and None
   $ hg add "file with spaces"
 
 Filename with spaces diffstat: