D6918: tests: suppress output from write()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sun Sep 29 15:19:58 EDT 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
Otherwise it is printed and the test fails with tons of output on
diff --git 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
To: indygreg, #hg-reviewers
More information about the Mercurial-devel