##// END OF EJS Templates
tests: update test-command-template to pass our import checker
Augie Fackler -
r33952:42361715 default
parent child Browse files
Show More
@@ -2166,9 +2166,10 b' Age filter:'
2166 $ cd unstable-hash
2166 $ cd unstable-hash
2167 $ hg log --template '{date|age}\n' > /dev/null || exit 1
2167 $ hg log --template '{date|age}\n' > /dev/null || exit 1
2168
2168
2169 >>> from datetime import datetime, timedelta
2169 >>> from __future__ import absolute_import
2170 >>> import datetime
2170 >>> fp = open('a', 'w')
2171 >>> fp = open('a', 'w')
2171 >>> n = datetime.now() + timedelta(366 * 7)
2172 >>> n = datetime.datetime.now() + datetime.timedelta(366 * 7)
2172 >>> fp.write('%d-%d-%d 00:00' % (n.year, n.month, n.day))
2173 >>> fp.write('%d-%d-%d 00:00' % (n.year, n.month, n.day))
2173 >>> fp.close()
2174 >>> fp.close()
2174 $ hg add a
2175 $ hg add a
General Comments 0
You need to be logged in to leave comments. Login now