tests/test-context.py
changeset 36789 ffa3026d4196
parent 35407 8a0cac20a1ad
child 37304 feced1629f48
--- a/tests/test-context.py	Mon Mar 05 15:07:32 2018 -0500
+++ b/tests/test-context.py	Mon Mar 05 12:30:20 2018 -0500
@@ -1,5 +1,6 @@
 from __future__ import absolute_import, print_function
 import os
+import stat
 from mercurial.node import hex
 from mercurial import (
     context,
@@ -170,7 +171,8 @@
     # touch 00manifest.i mtime so storecache could expire.
     # repo.__dict__['manifestlog'] is deleted by transaction releasefn.
     st = repo.svfs.stat('00manifest.i')
-    repo.svfs.utime('00manifest.i', (st.st_mtime + 1, st.st_mtime + 1))
+    repo.svfs.utime('00manifest.i',
+                    (st[stat.ST_MTIME] + 1, st[stat.ST_MTIME] + 1))
 
     # read the file just committed
     try: