changeset 19627:5df7118bdcd9

solaris: sed doesn't recognize a line without a newline
author Danek Duvall <danek.duvall@oracle.com>
date Fri, 23 Aug 2013 16:05:38 -0700
parents cf6b086d64cc
children 3193b23eec61
files tests/test-parse-date.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-parse-date.t	Fri Aug 23 14:31:42 2013 -0700
+++ b/tests/test-parse-date.t	Fri Aug 23 16:05:38 2013 -0700
@@ -242,7 +242,7 @@
   >>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d")
   >>> dates = open('dates', 'w')
   >>> dates.write(today + '\n')
-  >>> dates.write(yesterday)
+  >>> dates.write(yesterday + '\n')
   >>> dates.close()
   $ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code"
   $ hg log -d today --template '{desc}\n'