tests/test-context.py
changeset 33865 af20468eb0a4
parent 33706 01a1c4e66816
parent 33751 3889cf955a62
child 35400 8a0cac20a1ad
--- a/tests/test-context.py	Fri Aug 11 01:34:11 2017 -0700
+++ b/tests/test-context.py	Mon Aug 21 21:35:06 2017 -0700
@@ -24,11 +24,10 @@
 repo[None].add(['foo'])
 repo.commit(text='commit1', date="0 0")
 
+d = 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())
+    d = d[:2]
+print("workingfilectx.date = (%d, %d)" % d)
 
 # test memctx with non-ASCII commit message