Mercurial > public > mercurial-scm > hg-stable
diff tests/test-parse-date.t @ 38113:0a10f142299d
py3: suppress the output from .write() calls in few tests
Differential Revision: https://phab.mercurial-scm.org/D3604
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:43:13 +0530 |
parents | 48783333f45c |
children | fc4fb2f17dd4 |
line wrap: on
line diff
--- a/tests/test-parse-date.t Sat May 19 18:42:18 2018 +0530 +++ b/tests/test-parse-date.t Sat May 19 18:43:13 2018 +0530 @@ -243,8 +243,8 @@ >>> today = datetime.date.today().strftime("%b %d") >>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d") >>> dates = open('dates', 'w') - >>> dates.write(today + '\n') - >>> dates.write(yesterday + '\n') + >>> dates.write(today + '\n') and None + >>> dates.write(yesterday + '\n') and None >>> dates.close() $ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code" $ hg log -d today --template '{desc}\n'