]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/thelpers.py
Add helpers.fstat and _helpers._have_ns_fs_timestamps.
[bup.git] / lib / bup / t / thelpers.py
index 8fec0f55df91c468629785228fd4564918f214c5..6ca4b9d65ca70a195daac8183e05d2bd705cb4d0 100644 (file)
@@ -67,10 +67,10 @@ def _test_fstime():
 @wvtest
 def test_fstime():
     _test_fstime();
-    if _helpers.lstat: # Also test native python timestamp rep since we can.
-        orig_lstat = _helpers.lstat
+    if _helpers._have_ns_fs_timestamps: # Test native python timestamp rep too.
+        orig = _helpers._have_ns_fs_timestamps
         try:
-            _helpers.lstat = None
+            _helpers._have_ns_fs_timestamps = None
             _test_fstime();
         finally:
-            _helpers.lstat = orig_lstat
+            _helpers._have_ns_fs_timestamps = orig