]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/tindex.py
Merge remote branch 'origin/master' into meta
[bup.git] / lib / bup / t / tindex.py
index 4dd1411084be6bda2899a10dd92975cb00772941..4b9e16ab2da7c3bd06db481c3fb25dda62729e3e 100644 (file)
@@ -1,6 +1,7 @@
 import os
 from bup import index
 from bup.helpers import *
+import bup.xstat as xstat
 from wvtest import *
 
 @wvtest
@@ -17,8 +18,8 @@ def index_basic():
 @wvtest
 def index_writer():
     unlink('index.tmp')
-    ds = os.stat('.')
-    fs = os.stat('tindex.py')
+    ds = xstat.stat('.')
+    fs = xstat.stat('tindex.py')
     w = index.Writer('index.tmp')
     w.add('/var/tmp/sporky', fs)
     w.add('/etc/passwd', fs)
@@ -49,8 +50,8 @@ def eget(l, ename):
 def index_dirty():
     unlink('index.tmp')
     unlink('index2.tmp')
-    ds = os.stat('.')
-    fs = os.stat('tindex.py')
+    ds = xstat.stat('.')
+    fs = xstat.stat('tindex.py')
     
     w1 = index.Writer('index.tmp')
     w1.add('/a/b/x', fs)