[PATCH V2] tests: explicitly flush output streams
Yuya Nishihara
yuya at tcha.org
Wed Mar 23 10:29:55 EDT 2016
On Sun, 20 Mar 2016 18:03:24 -0700, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1458035502 0
> # Tue Mar 15 09:51:42 2016 +0000
> # Node ID 645c7dedfcefc46f29c7eeb11165569ced56fec1
> # Parent 83127a9fe76ea8b9379d9efa3afefff075b4f920
> tests: explicitly flush output streams
Queued this, thanks.
> diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
> --- a/tests/test-obsolete.t
> +++ b/tests/test-obsolete.t
> @@ -923,6 +923,7 @@
> Test heads computation on pending index changes with obsolescence markers
> $ cd ..
> $ cat >$TESTTMP/test_extension.py << EOF
> + > import sys
"sys" is unused. Removed.
> > from mercurial import cmdutil
> > from mercurial.i18n import _
> >
> @@ -935,7 +936,7 @@
> > opts['message'] = 'Test'
> > opts['logfile'] = None
> > cmdutil.amend(ui, repo, commitfunc, repo['.'], {}, pats, opts)
> - > print repo.changelog.headrevs()
> + > ui.write('%s\n' % repo.changelog.headrevs())
More information about the Mercurial-devel
mailing list