Skip to content
Snippets Groups Projects
Commit f1dffb37 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

tests: suppress output from write()

Otherwise it is printed and the test fails with tons of output on
Python 3.

Differential Revision: https://phab.mercurial-scm.org/D6918
parent d6f34ceb
No related branches found
No related tags found
No related merge requests found
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
>>> random.seed(0) # have a reproducible content >>> random.seed(0) # have a reproducible content
>>> with open("f2", "w") as f: >>> with open("f2", "w") as f:
... for i in range(100000): ... 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' $ hg -q commit -A -m 'add f2'
make sure we have a .d file make sure we have a .d file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment