comparison tests/test-filecache.py @ 30332:318a24b52eeb

spelling: fixes of non-dictionary words
author Mads Kiilerich <madski@unity3d.com>
date Mon, 17 Oct 2016 23:16:55 +0200
parents 57830bd0e787
children d83ca854fa21
comparison
equal deleted inserted replaced
30331:b19291e5d506 30332:318a24b52eeb
195 continue 195 continue
196 196
197 repetition = 3 197 repetition = 3
198 198
199 # repeat changing via checkambigatclosing, to examine whether 199 # repeat changing via checkambigatclosing, to examine whether
200 # st_mtime is advanced multiple times as expecetd 200 # st_mtime is advanced multiple times as expected
201 for i in xrange(repetition): 201 for i in xrange(repetition):
202 # explicit closing 202 # explicit closing
203 fp = scmutil.checkambigatclosing(open(filename, 'a')) 203 fp = scmutil.checkambigatclosing(open(filename, 'a'))
204 fp.write('FOO') 204 fp.write('FOO')
205 fp.close() 205 fp.close()
212 if oldstat.st_ctime != newstat.st_ctime: 212 if oldstat.st_ctime != newstat.st_ctime:
213 # timestamp ambiguity was naturally avoided while repetition 213 # timestamp ambiguity was naturally avoided while repetition
214 continue 214 continue
215 215
216 # st_mtime should be advanced "repetition * 2" times, because 216 # st_mtime should be advanced "repetition * 2" times, because
217 # all changes occured at same time (in sec) 217 # all changes occurred at same time (in sec)
218 expected = (oldstat.st_mtime + repetition * 2) & 0x7fffffff 218 expected = (oldstat.st_mtime + repetition * 2) & 0x7fffffff
219 if newstat.st_mtime != expected: 219 if newstat.st_mtime != expected:
220 print("'newstat.st_mtime %s is not %s (as %s + %s * 2)" % 220 print("'newstat.st_mtime %s is not %s (as %s + %s * 2)" %
221 (newstat.st_mtime, expected, oldstat.st_mtime, repetition)) 221 (newstat.st_mtime, expected, oldstat.st_mtime, repetition))
222 222