tests/test-command-template.t
changeset 18173 9916d104c485
parent 17631 0b241d7a8c62
child 18207 3b1005354440
--- a/tests/test-command-template.t	Fri Dec 28 16:25:12 2012 -0800
+++ b/tests/test-command-template.t	Mon Dec 31 21:50:35 2012 -0600
@@ -1348,7 +1348,8 @@
 
   >>> from datetime import datetime
   >>> fp = open('a', 'w')
-  >>> fp.write(str(datetime.now().year + 8) + '-01-01 00:00')
+  >>> n = datetime.now()
+  >>> fp.write('%d-%d-%d 00:00' % ((n.year + 7), n.month, n.day))
   >>> fp.close()
   $ hg add a
   $ hg commit -m future -d "`cat a`"