Patchwork D6918: tests: suppress output from write()

login
register
mail settings
Submitter phabricator
Date Sept. 30, 2019, 12:49 p.m.
Message ID <7b0f0b56d2f381a0ed9f113dfbd2d268@localhost.localdomain>
Download mbox | patch
Permalink /patch/41853/
State Not Applicable
Headers show

Comments

phabricator - Sept. 30, 2019, 12:49 p.m.
Closed by commit rHGf1dffb37f27c: tests: suppress output from write() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6918?vs=16691&id=16700

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6918/new/

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

AFFECTED FILES
  tests/test-upgrade-repo.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-upgrade-repo.t b/tests/test-upgrade-repo.t
--- a/tests/test-upgrade-repo.t
+++ b/tests/test-upgrade-repo.t
@@ -390,7 +390,7 @@ 
   >>> random.seed(0) # have a reproducible content
   >>> with open("f2", "w") as f:
   ...     for i in range(100000):
-  ...         f.write("%d\n" % random.randint(1000000000, 9999999999))
+  ...         f.write("%d\n" % random.randint(1000000000, 9999999999)) and None
   $ hg -q commit -A -m 'add f2'
 
 make sure we have a .d file