solaris: sed doesn't recognize a line without a newline
authorDanek Duvall <danek.duvall@oracle.com>
Fri, 23 Aug 2013 16:05:38 -0700
changeset 19627 5df7118bdcd9
parent 19626 cf6b086d64cc
child 19628 3193b23eec61
solaris: sed doesn't recognize a line without a newline
tests/test-parse-date.t
--- 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'