]> arthur.barton.de Git - bup.git/blobdiff - t/test-sparse-files.sh
get: adjust for python 3 and test there
[bup.git] / t / test-sparse-files.sh
index 40d25d02696659988625270b87ac746da27eb78a..fdbfa4bc210d5e75fd480ba14f4ada355808778e 100755 (executable)
@@ -19,7 +19,7 @@ WVPASS cd "$tmpdir"
 # The 3MB guess is semi-arbitrary, but we've been informed that
 # Lustre, for example, uses 1MB, so guess higher than that, at least.
 block_size=$(bup-python -c \
-  "import os; print getattr(os.stat('.'), 'st_blksize', 0) or $mb * 3") \
+  "import os; print(getattr(os.stat('.'), 'st_blksize', 0)) or $mb * 3") \
     || exit $?
 data_size=$((block_size * 10))
 readonly block_size data_size