mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
test-context: conditionalize the workingfilectx date printing for Windows
Starting with 8102a3981272, the output changed on Windows: --- e:/Projects/hg/tests/test-context.py.out +++ e:/Projects/hg/tests/test-context.py.err @@ -1,4 +1,4 @@ -workingfilectx.date = (1000, 0) +workingfilectx.date = (1000L, 0) ASCII : Gr?ezi! Latin-1 : Grⁿezi! UTF-8 : Gr├╝ezi! Since int and long are both 32 bit on Windows, this seems harmless in practice other than the previous test failure.
This commit is contained in:
parent
89239f0372
commit
8637ab634c
@ -16,7 +16,11 @@ os.utime('foo', (1000, 1000))
|
||||
repo[None].add(['foo'])
|
||||
repo.commit(text='commit1', date="0 0")
|
||||
|
||||
print "workingfilectx.date =", repo[None]['foo'].date()
|
||||
if os.name == 'nt':
|
||||
d = repo[None]['foo'].date()
|
||||
print "workingfilectx.date = (%d, %d)" % (d[0], d[1])
|
||||
else:
|
||||
print "workingfilectx.date =", repo[None]['foo'].date()
|
||||
|
||||
# test memctx with non-ASCII commit message
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user